Initializes a new instance of the DecorationLayer class.
Namespace: MindFusion.Mapping
Package: DecorationLayer.js
JavaScript Copy Code |
---|
function DecorationLayer ([id]) |
String. The id of this layer.
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(); markers.decorations.add(mark); |