• Resolved sio2

    (@sio2)


    I’m really sorry for making this question. I know I’m missing something but can’t figure out what. I’m making a site in my localhost about an island. I’d like to use groups of markers to locate for example hospitals, gas stations, markets, etc. I manage to load the map and some not grouped markers but when I try to insert the codes from Extensions for Leaflet Map, they don’t work. so I’m guess I’m doing something wrong. would it be possible for you to assist me in such basic understanding of the System? please.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author hupe13

    (@hupe13)

    These shortcodes work as expected?

    [leaflet-map fitbounds]
    [leaflet-marker lat=... lng=... ...]hospital[/leaflet-marker]
    [leaflet-marker lat=... lng=... ...]gas station[/leaflet-marker]
    [leaflet-marker lat=... lng=... ...]market[/leaflet-marker]
    ...

    And now do you like to group these? Have the markers different icons? One icon for hospital, an other for gas station, etc.? How are your shortcodes?

    • This reply was modified 2 months, 1 week ago by hupe13.
    Thread Starter sio2

    (@sio2)

    greetings hupe13. thank for your response.
    see, the thing is when I close the tag like this [/leaflet-marker] it doesn’t work. when I make the marker like this [leaflet-marker iconClass=”gasstation” lat=11.01700445790232 lng=-63.825556210513525], and then I try to group the class, it works.
    now, that I can see the markers and the groups checkmarks, I can learn to customize the markers icons.
    again, thank you very much!

    Plugin Author hupe13

    (@hupe13)

    iconClass="gasstation"is for grouping, the string between [leaflet-marker ...] and [/leaflet-marker] is the popup.

    If you don’t have different icons for the groups you can use leaflet-extramarker. See examples:

    Thread Starter sio2

    (@sio2)

    Thanks for your response and the examples link. I made a new wordpress instalation and everything seems to be working great!
    thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.