Removes an element from the collection.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function remove (item) |
Object. The object to remove.
The following code creates a DecorationLayer and adds Marker instances to it. Then it checks if an item is present in the collection and if yes - removes it. The decorations property is of type ObservableCollection, which derives from IEnumerable.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create some markers with images var mark1 = new m.Marker(); |