ASP.NET Pack Programmer's Guide
MapEventArgs.location Property
See Also
 





Gets the geographic cooordinates related to the event.

Namespace: MindFusion.Mapping
Package: EventArgs.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(MapEventArgs.prototype, "location", { value: LatLong });

 Property Value

LatLong. A LatLong instance.

 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(args.location.latitude < 0)
    {
          //event handling code
    }
}

 See Also

MapEventArgs Members
MapEventArgs Class
MindFusion.Mapping Namespace