Removes a range of elements starting from the given index.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function removeRange (index, count) |
Number. The starting index of the range.
Number. The length of the range.
The following code checks if there are more than 10 items in a DecorationLayer decorations property. If yes, it removes the last 5 of them. 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();
|