• I started using the extension and the capabilities are amazing!
    Now I wanted to group markers and was wondering if it is somehow possible that a marker can be included in two or more groups.

    I would have thought that if I for example put as title=coffee,cake for the marker, it would do the trick. But obviously that doesn’t work. Is there any way to accomplish that?

    Thanks for any help on this ??

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

    (@hupe13)

    Unfortunately, this is not possible, a marker can only belong to one group.

    It is the implementation of the Leaflet plugin Leaflet.FeatureGroup.SubGroup. There a two demos: The first example is realized in Extensions. Maybe the second one will fulfill your wish.

    Thread Starter bentamin

    (@bentamin)

    Thank you for the quick answer. Maybe I experiment a bit with the layers and grouping functionality.

    What I want to do is having a map that shows locations of persons who are offering accommodation. Kind of a couchsurfing thing… A person has different accommodation options they can offer and it’s possible to have multiple options selected like:
    A Bed
    Couch
    Own Room
    Own apartment
    etc.

    So if I now would put a layer per option, that would mean, creating for every person at least four markers. That wouldn’t really work cause If I have two layers checked, two identical locations and person would appear on the map… I guess I am thinking loud…

    Any idea on how to accomplish that with the leaflet extension?

    Plugin Author hupe13

    (@hupe13)

    Someone asked something similar, but did not write a solution.

    I don’t have an idea in the moment. Maybe a formular.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Marker being part of two or more groups’ is closed to new replies.