跳到主要内容

flywave-mapview.mapview.setdynamicproperty

Home > @flywave/flywave-mapview > MapView > setDynamicProperty

MapView.setDynamicProperty() method

Updates the value of a dynamic property.

Signature:

setDynamicProperty(name: string, value: Value): void;

Parameters

Parameter

Type

Description

name

string

The name of the property.

value

Value

The value of the property.

Returns:



void

## Remarks

Property names starting with a `$`<!-- -->-sign are reserved and any attempt to change their value will result in an error.

Themes can access dynamic properties using the `Expr` operator `["dynamic-properties"]`<!-- -->, for example:

`["get", "property name", ["dynamic-properties"]]`