ASP.NET Pack Programmer's Guide
ObservableCollection Class
See Also
 





Represents a collection of arbitrary objects.

Namespace: MindFusion.Mapping
Package: ObservableCollection.js

 Syntax

JavaScript  Copy Code

// class
ObservableCollection.prototype = {}

 Example

The following code creates a new DecorationLayer and adds some Marker-s to its decorations property. 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
var mark = new m.Marker(new m.LatLong(-22.951916, -43.210487));
mark.imageSrc = "./images/christ_redeemer.png";
mark.text = "Christ the Redeemer";
markers.decorations.add(mark);

mark = new m.Marker();
mark.location = new m.LatLong(41.89021, 12.492231);
mark.imageSrc = "./images/colosseum100.png";
mark.text = "Colloseum";
markers.decorations.add(mark);

 Inheritance Hierarchy

MindFusion.Mapping.IEnumerable
    MindFusion.Mapping.List
        MindFusion.Mapping.ObservableCollection

 See Also

ObservableCollection Members
MindFusion.Mapping Namespace