Search
LatLongRect.maxLongitude Property
See Also
 






Gets the maximum longitude of the area.

Namespace: MindFusion.Mapping
File: LatLongRect.js

 Syntax

JavaScript  Copy Code

get maxLongitude() {}

 Property Value

Number. The maximum longitude in degrees.

 Example

The following code uses the maxLongitude 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.maxLongitude > 13.070254)
   alert("You are in Scandinavia");

 See Also