Socrapop / travelers-map

Wordpress plugin to show your posts on a Leaflet dynamic map, using OpenStreetMap datas.
GNU General Public License v3.0
16 stars 5 forks source link

Choose which type of marker to display #24

Open BaptisteOrieuxDecathlon opened 2 years ago

BaptisteOrieuxDecathlon commented 2 years ago

Hi there :) I've downloaded the v2 of your plugin and I wanted to thank you once again for this awesome work you did !

On each post of my blog, I have at least 2 markers : 1 for the beggining of the hike and 1 for the place I spent the night. I also have a page with a map displaying all of my markers. I want to display only the places where I slept. I was thinking about using the parameter you offer to display only main markers, but on some of my posts, I do have multiples sleeping points I still want to display on my complete map.

Is there any way to display only one type of marker ?

Here's the global map i'm displaying : https://adventures.orieux.net/mes-positions/

As you can see on almost all of my points in the US, i have both the starting point (optional makrer) and the sleeping point (main marker) displayed. I would like to hide all of the starting point, yet, keeping the sleeping points, even if this is an optional marker.

BaptisteOrieuxDecathlon commented 2 years ago

image image To give a bit more context :)

BaptisteOrieuxDecathlon commented 2 years ago

I feel like it's not clear enough. To give another (clear) exemple, here's ont of my blog post with multiple sleeping point (marker with a tent) and one start point. The main marker is one of the sleeping point. I want to display every markers of this post on a map on my post (and it's working). Yet, I wish I could display only the sleeping point on a global map, even if they are not the main marker

Link of the post : https://adventures.orieux.net/france/trois-jours-en-solo-dans-les-alpes/

image Here, you can see my post has 3 sleeping point (one of them is the main marker), and 1 starting point

image It displays as expected on my post.

On the page displaying a global map of the world (https://adventures.orieux.net/mes-positions/) only the main marker is displayed because I check the option to hide the additional markers image

I wish I could check an option to hide one type of markers, and not only the additional markers. That way, I would still display the sleeping point, even if they are considered additional markers

code-no-mad commented 1 year ago

I would also love this feature to be able to filter by marker type! Same here, I have spots where I sleep or whatever and I want to show a map with only this kind of markers.