Adds an object to the end of the collection.
Namespace: MindFusion.Mapping
Package: IEnumerable.js
JavaScript Copy Code |
---|
function add (item) |
Object. The object to add.
The following code creates a new Marker and adds it to the decorations collection of a DecorationLayer called markers. 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 |