akelement
Forum Replies Created
-
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Link in body of text to zoom to map MarkerWow that’s what I’m looking for. An
onclickfunction to the specific marker. I think if you removed thehref="#"from the link then it won’t mess with the url and it can reload.Forum: Plugins
In reply to: [Extensions for Leaflet Map] Link in body of text to zoom to map Markergeojsonmarkerdoesn’t have an optionsvg. You want group the markers. Have the markers in the geojsonfile a propertymarker-color?Yeah, I created my file with geojson.io website and I could change the marker color with the
marker-colorproperty. The way I got the colors to show up using the hex color codes was with thesvgoption from theextramarker-options. The geojsonmarker providing grouping was a nice addition.targetmarkerexpects a lat and lng parameter in the url, this is the error and I will change this.Would the
targetmarkeralso be able to choose the geojson parameter for the marker in the url (e.g.url.com/placenames/?id=12)?Forum: Plugins
In reply to: [Extensions for Leaflet Map] Link in body of text to zoom to map MarkerYeah, that’s the functionality that I am looking for. And yeah it would be nice if there’s a way to not reload the page.
I tried adding your shortcodes for
overviewmapandtargetmarkerbut they don’t work with my setup usinggeojsonmarker. Here’s a general look at my map shortcode.[leaflet-map ...]
[leaflet-geojson src="…"]
{id}
[/leaflet-geojson]
[geojsonmarker svg property=marker-color …]
[overviewmap latlngs=ovm-latlng]
[fullscreen]
[zoomhomemap !fit]
[targetmarker]This is the error it displays:
no leaflet-marker custom fields [targetmarker - lat, lng missing ]Also, how did you add the code for the “Here” link?