Initializes a new instance of the ObservableCollection class.
Namespace: MindFusion.Mapping
Package: ObservableCollection.js
JavaScript Copy Code |
---|
function ObservableCollection ([items]) |
Array. The underlying array data structure of the collection.
The following code creates a new DecorationLayer and adds some Marker-s to its decorations property. The decorations property is of type ObservableCollection.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var markers = new m.DecorationLayer("Images"); // create some markers with images mark = new m.Marker(); |