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
The click space at all zoom levels is extremely large. I've been having trouble finding a way to control it (polyline feature is yellow in the image). I found this to be the case also when making mapview maps with the leafgl option turned on. It is correct when you click directly on the feature.
Below was my call to add the polylines - gm is a an sf linestring object, the CRS is WGS84. I'm using R. 4.2.1.
map <- leafgl::addGlPolylines(map, data = gm, color = "#E79978", opacity = 0.5, group = "grp1", weight = 1, popup = gm_popup)
Any help overcoming this issue is welcome. Thanks for the awesome job on this package. It's incredibly useful.
The text was updated successfully, but these errors were encountered:
My guess is that the click space in leafgl is defined by the pixels for the zoom level where the polylines are initially rendered - I just can't figure out how to control that or even find out what it is :).
Here's an example with from the package's test data
Currently it is not possible to change that. The popup will be generated where the click event was made.
This PR #58 addresses this issue with the argument sensitivity
The click space at all zoom levels is extremely large. I've been having trouble finding a way to control it (polyline feature is yellow in the image). I found this to be the case also when making mapview maps with the leafgl option turned on. It is correct when you click directly on the feature.
Below was my call to add the polylines - gm is a an sf linestring object, the CRS is WGS84. I'm using R. 4.2.1.
map <- leafgl::addGlPolylines(map, data = gm, color = "#E79978", opacity = 0.5, group = "grp1", weight = 1, popup = gm_popup)
Any help overcoming this issue is welcome. Thanks for the awesome job on this package. It's incredibly useful.
The text was updated successfully, but these errors were encountered: