Gets the collection of all layers added to this MapView.
Namespace: MindFusion.Mapping
File: MapView.js
SyntaxJavaScript
Copy Code
|
|---|
get layers() {} |
ObservableCollection. A collection of MapLayer and DecorationLayer instances.
ExampleThe following code creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page and adds a new MapLayer to its layers collection:
JavaScript
Copy Code
|
|---|
// create a new instance of the mapView // create a map layer |
See Also