You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to bother you again, I have another question/feature request.
For the map I'm building, I need to add search field the user to quickly pin point the feature (postal code) it's looking for. The package leaflet.extra has this functionality which works really well:
I want to reproduce this but by using addGlPolygons instead of addPolygons. The problem is that addSearchFeatures requires addPolygons's label parameter using a ~ or called with nc$NAME which isn't available in addGlPolygon:
My actual problem requires me to plot around 50,000 polygons, so I have to use leafgl instead of basic leaflet. However, the search feature is really needed to sort through all the 50,000 polygons. I tried to go around the problem by using leafgl to plot the polygons and adding an invisible leaflet::addMarkers to allow the search. I was expecting leaflet to be able to handle 50,000 points which should be simpler than 50,000 polygons but it wasn't the case, it failed. The code I used:
Sorry to bother you again, I have another question/feature request.
For the map I'm building, I need to add search field the user to quickly pin point the feature (postal code) it's looking for. The package
leaflet.extra
has this functionality which works really well:This creates a map which I can search:
I want to reproduce this but by using
addGlPolygons
instead ofaddPolygons
. The problem is thataddSearchFeatures
requiresaddPolygons
'slabel
parameter using a~
or called withnc$NAME
which isn't available inaddGlPolygon
:My actual problem requires me to plot around 50,000 polygons, so I have to use
leafgl
instead of basicleaflet
. However, the search feature is really needed to sort through all the 50,000 polygons. I tried to go around the problem by usingleafgl
to plot the polygons and adding an invisibleleaflet::addMarkers
to allow the search. I was expectingleaflet
to be able to handle 50,000 points which should be simpler than 50,000 polygons but it wasn't the case, it failed. The code I used:Which produce:
Do you think there a way to add the
label
argument in youraddGl*
functions so they are compatible withleaflet.extra
?The text was updated successfully, but these errors were encountered: