setLayoutProperty method
MapboxMap
setLayoutProperty(
- String layerId,
- String name,
- dynamic value, [
- StyleSetterOptions? options,
Sets the value of a layout property in the specified style layer.
@param {string} layerId The ID of the layer to set the layout property in.
@param {string} name The name of the layout property to set.
@param {*} value The value of the layout property. Must be of a type appropriate for the property, as defined in the Mapbox Style Specification.
@param {Object} options
@param {boolean} options.validate=true
Whether to check if value
conforms to the Mapbox GL Style Specification. Disabling validation is a performance optimization that should only be used if you have previously validated the values you will be passing to this function.
@returns {MapboxMap} this
@example
map.setLayoutProperty('my-layer', 'visibility', 'none');
Implementation
MapboxMap setLayoutProperty(String layerId, String name, dynamic value,
[StyleSetterOptions? options]) =>
MapboxMap.fromJsObject(jsObject.setLayoutProperty(layerId, name, value));