Timeline for Restore All markers on click, MapBox, MaplibreGl
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 6 at 21:48 | comment | added | blogob | you're right, I'll do that | |
Oct 6 at 17:20 | comment | added | TomazicM | This is different question and should be posted as a separate question, otherwise comments can go ad infinitum. | |
Oct 6 at 15:01 | comment | added | blogob | here is an example of that bug: jsfiddle.net/4wxo9jhr | |
Oct 6 at 14:51 | comment | added | blogob | I think I've found what makes the map bug. In the example provided, if you click on an item in the list, the corresponding marker popup is not displayed when it should. If, in the cratePopup() function, I add in .setHTML(''<h3>${currentFeature.properties.name}</h3<h4>${currentFeature.properties.category}</h4> etc. In this case the popup is displayed but suddenly the page starts to make untimely jumps as soon as you click on items in the list. If I just put .setHTML(''<h3>${name}</h3><h4>${category}</h4> the page no longer jumps, but the popups disappear again. Do you know why ?? | |
Oct 5 at 8:59 | comment | added | TomazicM | Since I don't have you local version, I have no idea why it's like that. | |
Oct 4 at 23:14 | comment | added | blogob | in fact what I meant is that on your example, a single click on a cluster icon is enough for the map to zoom, like in the example of Mapbox docs.mapbox.com/mapbox-gl-js/example/cluster . In my local version, I had to double-click on the cluster icon to make it zoom. And apart from the code you added, I don't see what makes the difference. | |
Oct 4 at 19:32 | comment | added | TomazicM | That's have Mapbox maps behave: double click on map means zoom in, click on cluster means zoom in enough so that individual markers are displayed. | |
Oct 4 at 19:21 | comment | added | blogob | I noticed that in your version, a click on a cluster is enough to activate the zoom, but until then, I had to double click to advance in the zoom. Apart from your additional code, it doesn't seem to me that you have touched the rest. Do you have any idea what was preventing clusters from zooming in with a single click? | |
Oct 4 at 10:53 | comment | added | blogob | Really, thank you so much, I'm impressed and really appreciate your help :).. I still have two problems, the page jump when clicking on the sidebar links, and the color of the clusters. I continue my research:) thanks again !! | |
Oct 4 at 10:53 | comment | added | blogob | TomazicM You solved my problem in no time, once again, while I've been there for several days!! I don't know turf, so I don't understand everything and could never have done it alone. You solved the problem of the reset button, zooming on the region and in addition to clicking on the clusters (I don't know why I had to double click on it to zoom). | |
Oct 4 at 10:48 | vote | accept | blogob | ||
Oct 4 at 9:14 | history | answered | TomazicM | CC BY-SA 4.0 |