Search
LatLongRect Class
See Also
 






Specifies a rectangular area in a geographic coordinate system.

Namespace: MindFusion.Mapping
File: LatLongRect.js

 Syntax

JavaScript  Copy Code

// class
LatLongRect.prototype = {}

 Example

The following code set the mapBounds property of a mapView to a rectangle that represents the area between the geographical coordinates of London and Paris.

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.mapBounds = new m.LatLongRect(51.507351, -0.127758, 48.856613, 2.352222);
view.zoomPivot = m.ZoomPivot.Cursor;

 Inheritance Hierarchy

MindFusion.Mapping.LatLongRect

 See Also