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





Gets or sets the client offset of this decoration.

Namespace: MindFusion.Mapping
Package: Decoration.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(Decoration.prototype, "offset", { value: Point });

 Property Value

Point. A Point instance representing the client offset of this decoration.

 Example

The following code creates a new Marker and sets its offset together with other properties. 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.offset = new Point(10, 10);
mark.imageSrc = "./images/colosseum100.png";
mark.text = "Colloseum";

 See Also

Decoration Members
Decoration Class
MindFusion.Mapping Namespace