Changelog
Source:NEWS.md
leafgl 0.2.2 (2024-11-13)
CRAN release: 2024-11-13
- Switched from
jsonify
andgeojsonsf
toyyjsonr
- New method
clearGlGroup
removes a group from leaflet and the Leaflet.Glify instances. - The JavaScript methods of the
removeGl**
functions was rewritten to correctly remove an element identified bylayerId
-
clearGlLayers
now correctly removes all Leaflet.Glify instances - When showing/hiding Leaflet.Glify layers, they are set to active = TRUE/FALSE to make mouseevents work again. #48 #50
🐛 bug fixes
- Increase precision of points, lines and shapes by translating them closer to the Pixel Origin. Thanks @RayLarone #93
- src version now works also in shiny. #71
- added
popupOptions
andlabelOptions
. #83 - added
stroke
(default=TRUE) inaddGlPolygons
andaddGlPolygonsSrc
for drawing borders. #3 #68 - Labels work similar to
leaflet
.leafgl
accepts a single string, a vector of strings or a formula. #78 - The
...
arguments are now passed to all methods in the underlying library. This allows us to set additional arguments likefragmentShaderSource
,sensitivity
orsensitivityHover
. #81
leafgl 0.2.1
new features:
- all methods can now have labels/tooltips. Currently only lines and polygons support passing of a column name, points need a predefined label vector.
miscallaneous:
- all methods now have a pane argument to control layer ordering (thanks to @trafficonese). #67 #64