Initializes a new instance of the DecorationLayer class.
Namespace: MindFusion.Mapping
File: DecorationLayer.js
SyntaxJavaScript
Copy Code
|
|---|
function DecorationLayer ([id]) |
String. The id of this layer.
ExampleThe 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); |
See Also