Skip to contents

mapgl 0.2.1

  • Improved styling and positioning behavior of the layers control. Users can now customize the appearance of the layers control, and the layers control is collapsed by default with cleaner appearance. Added ability to link legends to specific layers with the new layer_id parameter in add_legend(). When a layer is toggled in the layers control, its associated legend will automatically show or hide.
  • Added support for custom legend positioning with new margin parameters (margin_top, margin_right, margin_bottom, margin_left) that allow fine-grained control over legend placement.
  • Fixed layers control toggle button state to correctly reflect the initial visibility of layers, resolving the issue with layers set to visibility = "none" showing as active in the control.
  • Support for the compare() plugin in Shiny applications, with new rendering and proxy functions for comparison apps in Mapbox and MapLibre.
  • New mode parameter in compare() allowing users to choose between "swipe" mode with a comparison slider, and "sync" mode which displays synchronized maps side-by-side.
  • Updates throughout the codebase to allow features to be used in comparison maps via Shiny proxy sessions.

mapgl 0.2.0

CRAN release: 2025-01-13

mapgl 0.1.4

CRAN release: 2024-11-01

  • add_image() allows you to add your own image to the map’s sprite for use as an icon / symbol layer
  • add_geolocate_control() adds a Geolocate control to the map
  • add_globe_minimap() adds a mini globe overview map that tracks how your map moves around the globe
  • Support for multiple legends with the argument add = TRUE
  • A move_layer() function that gives you more fine-grained control over layer ordering in a Shiny session
  • Various bug fixes and performance improvements.

mapgl 0.1.3

CRAN release: 2024-09-04

mapgl 0.1.0

  • Initial release.