Initializes a new instance of the DecorationEventArgs class.
Namespace: MindFusion.Mapping
File: EventArgs.js
JavaScript Copy Code |
---|
function DecorationEventArgs (decoration, location, position, rawEventArgs) |
Decoration. The the decoration related to the event.
LatLong. The geographic cooordinates related to the event.
Point. The client position related to the event.
Object. The Javascript event data.
The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. It adds a Marker to a DecorationLayer and handles the decorationHover event of the MapView.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView var markers = new m.DecorationLayer("Images"); // create some markers with images view.layers.add(markers);
|