Search
MapEventArgs Class
Remarks See Also
 






Specifies data for map related events.

Namespace: MindFusion.Mapping
File: EventArgs.js

 Syntax

JavaScript  Copy Code

// class
MapEventArgs.prototype = {}

 Remarks

Events that use the MapEventArgs class are click and hover of MapView.

 Example

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.

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.click.addEventListener(mapViewClickHandler);

function mapViewClickHandler( sender, args )
{
    if(sender == view)
    {
          //event handling code
    }
}

 Inheritance Hierarchy

MindFusion.Mapping.EventArgs
    MindFusion.Mapping.MapEventArgs

 See Also