ASP.NET Pack Programmer's Guide
DecorationLayer.decorations Property
See Also
 





Gets the collection of Decoration-s, displayed by this layer.

Namespace: MindFusion.Mapping
Package: DecorationLayer.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(DecorationLayer.prototype, "decorations", { value: ObservableCollection });

 Property Value

ObservableCollection. A collection of Decoration instances.

 Example

The following code creates a new DecorationLayer and adds a new Marker to the layer's decorations property.

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);

 See Also

DecorationLayer Members
DecorationLayer Class
MindFusion.Mapping Namespace