Gets the collection of DecorationLayer-s.
Namespace: MindFusion.Mapping
File: MapView.js
JavaScript Copy Code |
---|
get overlays() {} |
ObservableCollection. A collection of 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. Then it checks if there are any DecorationLayer-s and if not - adds one with a Marker in it:
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView if(view.overlays.count() == 0) //add a new DecorationLayer // create some markers with images view.layers.add(markers); |