Adds a range of elements to the end of the collection.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function addRange (range) |
Array. The range to add.
The following code creates two new Marker-s and add them to the decorations collection of a DecorationLayer called markers. 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 var mark1 = new m.Marker(); |