Skip to contents

This function adds WMS tiles with metric data to an existing Leaflet map, allowing for customization of style and filtering.

Usage

map_wms_metric(
  map,
  wms_params = params_wms()$metric,
  cql_filter = "",
  sld_body = ""
)

Arguments

map

An existing Leaflet map to which WMS tiles will be added.

wms_params

A list of WMS parameters.

cql_filter

A CQL filter to apply to the WMS request.

sld_body

A custom SLD (Styled Layer Descriptor) body for symbology customization.

Value

An updated Leaflet map with WMS tiles containing metric data added.

Examples

if (FALSE) {
  # Used in map_metric() function, see full example in map_metric() documentation
}