Skip to contents

mapgl 0.2.2

  • Added mapboxgl_view() and maplibre_view() functions for quick visualization of sf objects with automatic geometry detection and column-based styling (#102).
  • Added support for rain and snow effects on Mapbox GL maps with set_rain() and set_snow() functions.
  • Added add_globe_control() for MapLibre maps, allowing users to toggle between “mercator” and “globe” projections.
  • Fixed issue with set_style() in Shiny applications for both Mapbox and MapLibre maps (#99).
  • Fixed namespacing issue in get_drawn_features() for Shiny modules (#95).
  • Improved compare functionality with better control support and swiper color customization.

mapgl 0.2.1

CRAN release: 2025-03-18

  • 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.