Clears the collection.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function clear () |
The following code creates new Marker-s and add them to the decorations collection of a DecorationLayer called markers. It checks if the decoration items are more than 20 and if yes - clears the collection. 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(); |