Converts the specified geographic coordinates to a client position.
Namespace: MindFusion.Mapping
File: MapView.js
JavaScript Copy Code |
---|
function latLongToClient (location) |
LatLong. The location to convert.
Point. A Point instance representing The client point.
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 its click event, gets its location and assigns it as an offset to a Marker instance:
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); view.click.addEventListener(mapViewClickHandler); function mapViewClickHandler( sender, args ) |