• Resolved WPWanderer

    (@wpwanderer)


    I was hoping you might direct me the best way to do the below. I want create a list that links to the markers. I’ve been able to use “Target Markers” to create text links to individual markers. However, I would like to create some sort of group layer link that would show the child items when clicked. I guess this would be similar to “group by features options.” But I want to make a list with headers and control the HTML.

    Ideas? I started making GeoJson files for each thinking I could swap out the markers on click, but not sure that was the “way.”

    Group 1
    -Item 1
    -Item 2
    -Item 3

    Group 2
    -Item 1
    -Item 2
    -Item 3

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor hupe13

    (@hupe13)

    I don’t quite understand what you want.

    Thread Starter WPWanderer

    (@wpwanderer)

    Hey. Thanks for your response.

    As I understand it targetlink/targetmarker are only for individual markers? Correct? It cannot show a group of markers? Options for parentgroups has checkbox filter UI on top of the map, which is something I don’t want.

    Basically, I would like click on a link, for example “Group 1” and it show a group of markers attached to that group. For example “Places To Eat”, “Places To Drink” in a neighborhood map. A person could click on “Places To Eat” and it would only show the pins for “Place to Eat” etc.

    Any ideas would be appreciated. Thanks.

    Thread Starter WPWanderer

    (@wpwanderer)

    Maybe I can get parentgroups to work for what I need. Would it be possible to append the controls to a container div outside the map and hide the controls on the map?

    Basically, I am trying to make controls that look more like a list than a filter.

    Plugin Contributor hupe13

    (@hupe13)

    Maybe this example Control parentgroup outside the map helps. But you can’t change the layout really, this is from Leaflet plugin Leaflet.Control.Layers.Tree. And if it should be possible, I don’t know.

    Thread Starter WPWanderer

    (@wpwanderer)

    Thanks for the tips!

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