Updates one setting of a flowmap layer.
Arguments
- map
A map object created by
mapboxgl()ormaplibre(), or a proxy object created bymapboxgl_proxy()ormaplibre_proxy().- id
The ID of the flowmap layer to update.
- name
The setting name to update. Supported canonical FlowMapGL setting names are
opacity,colorScheme,darkMode,fadeAmount,highlightColor,locationsEnabled,locationTotalsEnabled,locationLabelsEnabled,flowLinesRenderingMode,flowLineThicknessScale,flowLineCurviness,clusteringEnabled,clusteringAuto,clusteringLevel,fadeEnabled,fadeOpacityEnabled,adaptiveScalesEnabled,temporalScaleDomain,maxTopFlowsDisplayNum, andflowEndpointsInViewportMode. Snake-case aliases such ascolor_scheme,temporal_scale_domain, andmax_top_flows_display_numare accepted and normalized internally. Filter state (selectedTimeRange,selectedLocations, andlocationFilterMode) must be updated withset_flowmap_filter().- value
The setting value.
Details
colorScheme accepts the same values as flow_color_scheme in
add_flowmap(): a FlowMapGL preset name, a character vector of at least two
CSS colors, or a mapgl_continuous_scale object from
interpolate_palette(). opacity must be between 0 and 1. fadeAmount
must be between 0 and 100. maxTopFlowsDisplayNum must be positive.
clusteringLevel must be numeric or NULL. flowLinesRenderingMode must
be "straight", "animated-straight", or "curved".
temporalScaleDomain must be "selected" or "all".
flowEndpointsInViewportMode must be "any" or "both". Boolean
settings must be scalar TRUE or FALSE.
