ASP.NET Pack Programmer's Guide
LatLongRect.minLatitude Property
See Also
 





Gets the minimum latitude of the area.

Namespace: MindFusion.Mapping
Package: LatLongRect.js

 Syntax

JavaScript  Copy Code

Object.defineProperty(LatLongRect.prototype, "minLatitude", { value: Number });

 Property Value

Number. The minimum latitude in degrees.

 Example

The following code uses the minLatitude 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.minLatitude < 56.297644)
   alert("You are in Central Europe");

 See Also

LatLongRect Members
LatLongRect Class
MindFusion.Mapping Namespace