Deletes a range of items from the collection.
Namespace: MindFusion.Mapping
Package: ObservableCollection.js
JavaScript Copy Code |
---|
function removeRange (index, count) |
Number. The starting index of the range to remove.
Number. The length of the range to remove.
The following code checks if the count of items in a decorations list is more than 10 and if yes - removes all items after the 5th one. 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 ..................... |