ASP.NET Pack Programmer's Guide
Decoration.location Property
See Also
 





Gets or sets the location of this Decoration.

Namespace: MindFusion.Mapping
Package: Decoration.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Decoration.prototype, "location", { value: LatLong });

 Property Value

LatLong. A LatLong instance representing the geographic coordinates of this Decoration.

 Example

The following code creates a new Marker and uses the location property to specify its coordinates. The Marker class derives from Decoration.

JavaScript  Copy Code

var m = MindFusion.Mapping;

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

 See Also

Decoration Members
Decoration Class
MindFusion.Mapping Namespace