Returns a new Object array, containing the contents of the collection.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function toArray () |
Array. The array.
The following code gets an Array with the items in a DecorationLayer decorations property. 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(); var decorrationsArray = markers.decorations.toArray(); |