• Resolved WPWanderer

    (@wpwanderer)


    Quick question. Wondering if this would be possible in your Free or Pro version?

    I would like to create a custom list that sits outside the map. It would look like the below. I was looking at your custom script section to see if I could create an on click function for each location/popup then I could code a list with my own HTML. However, I didn’t see anything.

    Places To Eat (Linked to Show Parent Group Category)
    -Place 1 (Linked To Popup)
    -Place 2 (Linked To Popup)
    -etc.

    Places To Drink
    -Place 1
    -Place 2
    -Etc.

    ETC.

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

    (@mapster)

    Hey there! OK, so if you don’t want to get your hands dirty, there is a way to MAYBE achieve more or less what you’re looking for. The new Listing Map — see an example here https://wpmaps.mapster.me/examples/mapster-wp-map/listing-map/ and documentation here https://wpmaps-docs.mapster.me/pro-features/specialty-maps/listing-page-map. However, this doesn’t necessarily do all the interaction you want, opening popups or not and clicking on markers, etc. It’s more about moving around the map. I would be open to adding more interactivity if this is important to you on this listing map, I think it’s overall a cool feature.

    That said, if you ARE willing to code it out yourself (and avoid paying for Pro or whatever), you could do it with the custom JS and hooks (https://wpmaps-docs.mapster.me/for-developers/javascript-hooks). Every time a marker is added, store the marker reference in an array (map_markers_set hook or map_features_set if you’re using Icons or Circles). Then, it’s relatively trivial to trigger the click event on the appropriate marker using your own custom JS for the list you made.

    It’s more complex to trigger a click event for a non-marker (Circle or Icon)… for that you’ll have to dig into Maplibre or Mapbox, but essentially you have to trigger a click event on the lat/lng of the feature, I think it’s generally the best to do it. Not super straightforward though.

    Let me know what you think and if this helps! Also feel free to followup at [email protected] if you do want some more work done to make the Listing Map a little more specific to fit your needs.

    • This reply was modified 3 months, 2 weeks ago by mapster.
    Thread Starter WPWanderer

    (@wpwanderer)

    Hey. Thanks so much for your great response. Somehow I missed your “Listing Map” demo before. It is slick. However, I think the “powers that be” would always want a little bit more.

    I don’t mind getting my hands a little dirty. See how it goes. I don’t think what I am looking for is that unique as I have seen variations a lot on the web. Especially, building neighborhood type maps. I think it a worthwhile add down the road if it could be implemented in a way that could be flexible.

    Thanks again.

    Plugin Author mapster

    (@mapster)

    Sure! If you think of specific functionalities you’d want to see in it, please let me know. The Listing Map is new and the goal is always to make these kinds of special maps flexible without completely overburdening the user with too many options.

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