documentation of SetProperty
This commit is contained in:
parent
43aad4ab14
commit
39539214df
@ -252,4 +252,15 @@ WA.showLayer('bottom');
|
|||||||
WA.hideLayer('bottom');
|
WA.hideLayer('bottom');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Set/Create properties in a layer
|
||||||
|
|
||||||
|
```
|
||||||
|
WA.setProperty(layerName : string, propertyName : string, propertyValue : string | number | boolean | undefined) : void;
|
||||||
|
```
|
||||||
|
|
||||||
|
Set the value of the "propertyName" property of the layer "layerName" at "propertyValue". If the property doesn't exist, create the property "propertyName" and set the value of the property at "propertyValue".
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
WA.setProperty('wikiLayer', 'openWebsite', 'https://www.wikipedia.org/');
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user