Gets the collection of all layers added to this MapView.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
Object.defineProperty(MapView.prototype, "layers", { value: ObservableCollection }); |
ObservableCollection. A collection of MapLayer and DecorationLayer instances.
The 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 |