WordPress.org

Support

Support » Plugins and Hacks » [Resolved] same marker on two individual layers

[Resolved] same marker on two individual layers

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author RobertHarm
    Participant

    @harmr

    currently not possible – but planned for a future (pro) version

    Got it figured out. Have to think out of the box, and that helps sometimes.

    Plugin Author RobertHarm
    Participant

    @harmr

    well – not I am curious – how did you do this?

    Okay, but come to think of it, it will open some more questions for you.

    Okay, I’ll explain here what we try to achieve, and not open other tickets or threads, unless you want me to:

    What we had before:
    – markers in different categories [say: stories, images, hotels, restaurants, and more]
    – layers for different countries and continents and world [per category!]
    – countries and continents inherit from the world layer for that category

    We then would enter markers on the world-hotel-layer. When I then want to show only hotels in Belgium, it could mesh up with some hotels showing on the border, or when somebody shifts the map around [you would see al the markers]

    Positive:
    – only a few layers on which you make the markers
    – other layers inherit, and you cannot mix up things when you make new markers, as the inherit layers are not visible in the assign dropdown.

    Negative:
    – not really possible to show only those markers for that country

    So I thought [wronly] that I could solve it by duplicating markers to different layers.

    What we have now:
    – markers in different categories [say: stories, images, hotels, restaurants, and more]
    – layers for different countries and continents and world [per category!]
    – world inherits from continents, continents inherit from countries.

    this works, as I want to show for example only hotels in Belgium.

    Positive:
    – can show markers per category for a country

    Negative:
    – a huge layer list, and very difficult to navigate. When making a new marker, the assign dropdown list is also huge: one layer for each category for each country.

    Question:
    It would be nice if you could make something to group the layers. Maybe with some fancy hide and show triangular icons? Any ideas?

    Adventurous greetings,
    Coen

    Plugin Author RobertHarm
    Participant

    @harmr

    Hi Coen,
    I think I understand your problem. Leaflet in general would support layer groups (http://leafletjs.com/reference.html#layergroup) – but I havent implemented this in my plugin yet and doint that would involve quite a lot of work as I had to change the general way markers are saved. But as said before, I havent looked into this in detail yet, as currently I am a bit in the lack of time as I want to build the basis for my pro plugin which takes more time than planned (as I want to keep a high quality).
    regards,
    Robert

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] same marker on two individual layers’ is closed to new replies.