Gets the id of this CanvasLayer.
Namespace: MindFusion.Mapping
File: CanvasLayer.js
SyntaxJavaScript
Copy Code
|
|---|
get id() {} |
String. The id of this layer.
ExampleThe following code checks the id of the first Layer in a MapView and if it is "Drawings", adds a Poly to its decorations:
JavaScript
Copy Code
|
|---|
f(mapView.layers.items()[0].id == "Drawings") |
See Also