WordPress.org

Ready to get started?Download WordPress

Forums

Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] same marker on two individual layers (6 posts)

  1. photocoen
    Member
    Posted 1 year ago #

    Is it possible to assign a marker to two or more individual layers, but not a multi layer?

    http://wordpress.org/extend/plugins/leaflet-maps-marker/

  2. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. photocoen
    Member
    Posted 1 year ago #

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

  4. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

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

  5. photocoen
    Member
    Posted 1 year ago #

    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

  6. RobertHarm
    Member
    Plugin Author

    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.