Removes the element at the given index.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function removeAt (index) |
Number. The index.
The following code checks if there are more than 10 items in a DecorationLayer decorations property. If yes, it removes the last 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();
|