Search
LatLongRect.minLongitude Property
See Also
 






Gets the minimum longitude of the area.

Namespace: MindFusion.Mapping
File: LatLongRect.js

 Syntax

JavaScript  Copy Code

get minLongitude() {}

 Property Value

Number. The minimum longitude in degrees.

 Example

The following code uses the minLongitude of the mapBounds property of a mapView to identify location:

JavaScript  Copy Code

var m = MindFusion.Mapping;
var d = MindFusion.Drawing;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.mapBounds = m.LatLongRect.fromCenter(new m.LatLong(51.507351, -0.127758), new d.Size(50, 100));
view.zoomPivot = m.ZoomPivot.Cursor;

if(view.mapBounds.minLongitude < 13.070254)
   alert("You are in Central Europe");

 See Also