Gets the collection of DecorationLayer-s.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
Object.defineProperty(MapView.prototype, "overlays", { value: ObservableCollection }); |
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); |