Gets the collection of markers, displayed by this DecorationLayer.
Namespace: MindFusion.Mapping
Package: DecorationLayer.js
JavaScript Copy Code |
---|
Object.defineProperty(DecorationLayer.prototype, "markers", { value: ObservableCollection }); |
ObservableCollection. A collection of Marker instances.
The following code creates a new Marker and adds it to the markers property of a DecorationLayer instance.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var imageLayer = new m.DecorationLayer("Images"); var mark = new m.Marker(); imageLayer.markers.add(mark); |