folium
folium copied to clipboard
[Question] Can VectorGrid Slicer be used to deal with many CircleMarkers ?
Hello all !
Quick question to deal with performance issues. I have a lot of circles with pop-up to display and i just discovered VectorGrid Slicer could handle easily many geometries, by playing between zoom & precision. I was wondering if this is applicable to folium Circles (as of now, or even considering minor developments).
Regards, Bastien
Hi Bastien,
I don't know if this is applicable to Folium circles. I do know we already use this plugin in the VectorGridProtobuf
plugin class. So having a plugin based on VectorGrid.Slicer
is in the realm of possibilities. I don't know much about it though, so can't help any further I'm afraid.
If you search our issues and PRs for something like 'vectorgrid' you can find users who made that VectorGridProtobuf
plugin and who might know more.
@iwpnd, your comment on this could be of some help ! :)
Sure, you could add VectorGrid.Slicer as a folium plugin and instead of rendering folium.circles, you'd pass a geojson to the plugin. I'm not too familiar with the plugin itself and how you'd control size per zoom level tho.
Hello @IvanSanchez, I am still early stage on these test to use your slicer in folium, but is it still relevant ? I see that the module is not updated since quite some time : is there an alternative I should consider as of now ?
@BastienGauthier I'm knee-deep in https://ivansanchez.gitlab.io/gleo/ , which works nice for displaying hundreds of thousands of geometries. Leaflet connector at https://gitlab.com/IvanSanchez/leaflet.gleo/ .