Deletes an item from the collection.
Namespace: MindFusion.Mapping
Package: ObservableCollection.js
JavaScript Copy Code |
---|
function remove (item) |
Object. The item to remove.
The following code remvoes an item from the decorations list of a DecorationLayer. 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 ..................... markers.decorations.remove(mark); |