Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter akelement

    (@akelement)

    Wow that’s what I’m looking for. An onclick function to the specific marker. I think if you removed the href="#" from the link then it won’t mess with the url and it can reload.

    Thread Starter akelement

    (@akelement)

    geojsonmarker doesn’t have an option svg. You want group the markers. Have the markers in the geojsonfile a property marker-color?

    Yeah, I created my file with geojson.io website and I could change the marker color with the marker-color property. The way I got the colors to show up using the hex color codes was with the svg option from the extramarker-options. The geojsonmarker providing grouping was a nice addition.

    targetmarker expects a lat and lng parameter in the url, this is the error and I will change this.

    Would the targetmarker also be able to choose the geojson parameter for the marker in the url (e.g. url.com/placenames/?id=12)?

    Thread Starter akelement

    (@akelement)

    Yeah, 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 overviewmap and targetmarker but they don’t work with my setup using geojsonmarker. 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?

Viewing 3 replies - 1 through 3 (of 3 total)