# Interactive Maps with 'Mapbox GL JS' and 'MapLibre GL JS'

## Documentation for package ‘mapgl’ version 0.4.4

- DESCRIPTION file.
- Package NEWS.

## Help Pages

A C E F G I J L M N O P Q R S T

## -- A --

add_categorical_legend | Add legends to Mapbox GL and MapLibre GL maps
add_circle_layer | Add a circle layer to a Mapbox GL map
add_continuous_legend | Add legends to Mapbox GL and MapLibre GL maps
add_control | Add a custom control to a map
add_draw_control | Add a draw control to a map
add_features_to_draw | Add features to an existing draw control
add_fill_extrusion_layer | Add a fill-extrusion layer to a Mapbox GL map
add_fill_layer | Add a fill layer to a map
add_fullscreen_control | Add a fullscreen control to a map
add_geocoder_control | Add a geocoder control to a map
add_geolocate_control | Add a geolocate control to a map
add_globe_control | Add a globe control to a map
add_globe_minimap | Add a Globe Minimap to a map
add_h3j_source | Add a hexagon source from the H3 geospatial indexing system.
add_heatmap_layer | Add a heatmap layer to a Mapbox GL map
add_image | Add an image to the map
add_image_source | Add an image source to a Mapbox GL or Maplibre GL map
add_layer | Add a layer to a map from a source
add_layers_control | Add a layers control to the map
add_legend | Add legends to Mapbox GL and MapLibre GL maps
add_legend.mapboxgl_compare | Add legends to Mapbox GL and MapLibre GL maps
add_legend.maplibre_compare | Add legends to Mapbox GL and MapLibre GL maps
add_line_layer | Add a line layer to a map
add_markers | Add markers to a Mapbox GL or Maplibre GL map
add_navigation_control | Add a navigation control to a map
add_pmtiles_source | Add a PMTiles source to a Mapbox GL or Maplibre GL map
add_raster_dem_source | Add a raster DEM source to a Mapbox GL or Maplibre GL map
add_raster_layer | Add a raster layer to a Mapbox GL map
add_raster_source | Add a raster tile source to a Mapbox GL or Maplibre GL map
add_reset_control | Add a reset control to a map
add_scale_control | Add a scale control to a map
add_screenshot_control | Add a screenshot control to a map
add_source | Add a GeoJSON or sf source to a Mapbox GL or Maplibre GL map
add_symbol_layer | Add a symbol layer to a map
add_vector_source | Add a vector tile source to a Mapbox GL or Maplibre GL map
add_video_source | Add a video source to a Mapbox GL or Maplibre GL map
add_view | Add a visualization layer to an existing map

## -- C --

carto_style | Get CARTO Style URL
classification_helpers | Extract information from classification and continuous scale objects
clear_controls | Clear controls from a Mapbox GL or Maplibre GL map in a Shiny app
clear_drawn_features | Clear all drawn features from a map
clear_layer | Clear layers from a map using a proxy
clear_legend | Clear legends from a map
clear_markers | Clear markers from a map in a Shiny session
cluster_options | Prepare cluster options for circle layers
compare | Create a Compare widget
concat | Create a concatenation expression

## -- E --

ease_to | Ease to a given view
enable_shiny_hover | Enable hover events for Shiny applications

## -- F --

fit_bounds | Fit the map to a bounding box
fly_to | Fly to a given view

## -- G --

get_breaks | Extract information from classification and continuous scale objects
get_column | Get column or property for use in mapping
get_drawn_features | Get drawn features from the map
get_legend_colors | Extract information from classification and continuous scale objects
get_legend_labels | Extract information from classification and continuous scale objects
get_queried_features | Get queried features from a map as an sf object

## -- I --

interpolate | Create an interpolation expression
interpolate_palette | Create an interpolation expression with automatic palette and break calculation

## -- J --

jump_to | Jump to a given view

## -- L --

legend_style | Create custom styling for map legends

## -- M --

mapboxgl | Initialize a Mapbox GL Map
mapboxglCompareOutput | Create a Mapbox GL Compare output element for Shiny
mapboxglOutput | Create a Mapbox GL output element for Shiny
mapboxgl_compare_proxy | Create a proxy object for a Mapbox GL Compare widget in Shiny
mapboxgl_proxy | Create a proxy object for a Mapbox GL map in Shiny
mapboxgl_view | Quick visualization of geometries with Mapbox GL
mapbox_style | Get Mapbox Style URL
maplibre | Initialize a Maplibre GL Map
maplibreCompareOutput | Create a Maplibre GL Compare output element for Shiny
maplibreOutput | Create a Maplibre GL output element for Shiny
maplibre_compare_proxy | Create a proxy object for a Maplibre GL Compare widget in Shiny
maplibre_proxy | Create a proxy object for a Maplibre GL map in Shiny
maplibre_view | Quick visualization of geometries with MapLibre GL
maptiler_style | Get MapTiler Style URL
map_legends | Add legends to Mapbox GL and MapLibre GL maps
match_expr | Create a match expression
move_layer | Move a layer to a different z-position

## -- N --

number_format | Create a number formatting expression

## -- O --

on_section | Observe events on story map section transitions
openfreemap_style | Get OpenFreeMap Style URL

## -- P --

palette_to_lut | Convert R color palette to mapgl LUT
print.mapgl_classification | Extract information from classification and continuous scale objects
print.mapgl_continuous_scale | Extract information from classification and continuous scale objects

## -- Q --

query_rendered_features | Query rendered features on a map in a Shiny session

## -- R --

renderMapboxgl | Render a Mapbox GL output element in Shiny
renderMapboxglCompare | Render a Mapbox GL Compare output element in Shiny
renderMaplibre | Render a Maplibre GL output element in Shiny
renderMaplibreCompare | Render a Maplibre GL Compare output element in Shiny

## -- S --

set_config_property | Set a configuration property for a Mapbox GL map
set_filter | Set a filter on a map layer
set_fog | Set fog on a Mapbox GL map
set_layout_property | Set a layout property on a map layer
set_paint_property | Set a paint property on a map layer
set_popup | Set popup on a map layer
set_projection | Set Projection for a Mapbox/Maplibre Map
set_rain | Set rain effect on a Mapbox GL map
set_snow | Set snow effect on a Mapbox GL map
set_source | Set source of a map layer
set_style | Update the style of a map
set_terrain | Set terrain properties on a map
set_tooltip | Set tooltip on a map layer
set_view | Set the map center and zoom level
step_classification | Step expressions with automatic classification
step_equal_interval | Step expressions with automatic classification
step_expr | Create a step expression
step_jenks | Step expressions with automatic classification
step_quantile | Step expressions with automatic classification
story_leaflet | Create a scrollytelling story map with Leaflet
story_map | Create a scrollytelling story map
story_maplibre | Create a scrollytelling story map with MapLibre
story_section | Create a story section for story maps

## -- T --

turf_area | Calculate area of geometries
turf_buffer | Turf.js Geospatial Operations for mapgl
turf_center_of_mass | Calculate center of mass
turf_centroid | Calculate centroid of geometries
turf_concave_hull | Create concave hull
turf_convex_hull | Create convex hull
turf_difference | Find difference between two geometries
turf_distance | Calculate distance between two features
turf_filter | Spatial filter features by predicate
turf_intersect | Find intersection of two geometries
turf_union | Union geometries
turf_voronoi | Create Voronoi diagram