Gets the client position related to the event.
Namespace: MindFusion.Mapping
Package: EventArgs.js
JavaScript Copy Code |
---|
Object.defineProperty(MapEventArgs.prototype, "position", { value: Point }); |
Point. A point instance, containing the client coordinates.
The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it handles the click event of the MapView and changed the offset of a Marker instance accordingly.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; var markers = new m.DecorationLayer("Images"); // create some markers with images view.layers.add(markers); function mapViewClickHandler( sender, args ) |