Raised when the user hovers over a decoration element.
Namespace: MindFusion.Mapping
Package: MapView.js
JavaScript Copy Code |
---|
EventDispatcher decorationHover |
The event handler method receives the following arguments:
sender
A MapView instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A DecorationEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.
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. The MapView class derives from Control.
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);
|