attachTooltip(marker, tooltipCode, tooltipOptions, tooltipType) {
		if (tooltipType === 'hover') {
			marker.bindTooltip(tooltipCode, tooltipOptions);
		} else if (tooltipType === 'click') {
			marker.bindPopup(tooltipCode, tooltipOptions);
		} else {
			console.error("tooltipType must be 'hover' or 'click'");
		}
	}
Attaches a tooltip to a marker.
@param {import('leaflet').Marker} marker - The marker to attach the tooltip to.
@param {string} tooltipCode - The tooltip content.
@param {import('leaflet').TooltipOptions} tooltipOptions - The tooltip options.
@param {string} tooltipType - The type of the tooltip ('hover' or 'click').