Search
LatLongRect.maxLatitude Property
See Also
 






Gets the maximum latitude of the area.

Namespace: MindFusion.Mapping
File: LatLongRect.js

 Syntax

JavaScript  Copy Code

get maxLatitude() {}

 Property Value

Number. The maximum latitude in degrees.

 Example

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

 See Also