Initializes a new instance of the Decoration class.
Namespace: MindFusion.Mapping
File: Decoration.js
SyntaxJavaScript
Copy Code
|
|---|
function Decoration ([location]) |
LatLong. The location of this decoration in geographical coordinates.
ExampleThe following code creates a new DecorationLayer and adds a new Marker to the layer's decorations property. The Marker class derives from Decoration.
JavaScript
Copy Code
|
|---|
var m = MindFusion.Mapping; var markers = new m.DecorationLayer("Images"); // create some markers with images |
See Also