Search
DecorationLayer Class
See Also
 






Represents a layer, containing decoration elements.

Namespace: MindFusion.Mapping
File: DecorationLayer.js

 Syntax

JavaScript  Copy Code

// class
DecorationLayer.prototype = {}

 Example

The following code creates a new Marker and adds it to the decorations property of a DecorationLayer instance.

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

var mark = new m.Marker();
mark.location = new m.LatLong(41.89021, 12.492231);
mark.offset = new Point(10, 10);
mark.imageSrc = "./images/colosseum100.png";
mark.text = "Colloseum";
mark.visible = false;

markers.decorations.add(mark);

 Inheritance Hierarchy

MindFusion.Mapping.DecorationLayer

 See Also