Gets the collection as an array.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function items () |
Array. The underlying array data structure of the collection.
The following code creates a DecorationLayer and adds Marker instances to it. Then it checks if the decoration items are more than 2 and if yes - gets the second one. The decorations property is of type ObservableCollection, which derives from IEnumerable.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var markers = new m.DecorationLayer("Images"); // create some markers with images mark = new m.Marker(); if(markers.decorations.count > 2) |