Gets the id of this CanvasLayer.
Namespace: MindFusion.Mapping
File: CanvasLayer.js
JavaScript Copy Code |
---|
get id() {} |
String. The id of this layer.
The 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") |