folium icon indicating copy to clipboard operation
folium copied to clipboard

[Question] Can VectorGrid Slicer be used to deal with many CircleMarkers ?

Open BastienGauthier opened this issue 8 months ago • 5 comments

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

BastienGauthier avatar Nov 13 '23 15:11 BastienGauthier

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.

Conengmo avatar Nov 14 '23 10:11 Conengmo

@iwpnd, your comment on this could be of some help ! :)

BastienGauthier avatar Nov 14 '23 14:11 BastienGauthier

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.

iwpnd avatar Nov 14 '23 14:11 iwpnd

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 avatar Dec 04 '23 09:12 BastienGauthier

@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/ .

IvanSanchez avatar Dec 04 '23 12:12 IvanSanchez