Initializes a new instance of the LatLong class.
Namespace: MindFusion.Mapping
Package: LatLong.js
JavaScript Copy Code |
---|
function LatLong (latitude, longitude) |
Number. The latitude of the location.
Number. The longitude of the location.
The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it creates a new Marker and sets it location using a LatLong instance.
JavaScript Copy Code |
---|
var m = MindFusion.Mapping; // create a new instance of the mapView var markers = new m.DecorationLayer("Images"); // create some markers with images view.layers.add(markers); |