Skip to content
wf9a5m75 edited this page Feb 14, 2014 · 5 revisions

A LatLng is a point in geographical coordinates: latitude and longitude. Latitude ranges between -90 and 90 degrees, inclusive. Values above or below this range will be clamped to the nearest value within this range.

var latLng = new plugin.google.maps.LatLng(40.712216,-74.22655);

Marker Class Reference

Method Return value Description
equals(other:LatLng) Boolean Return true if other position is as the same as this LatLng.
toString() String Converts to string representation.
toUrlValue(precision?:number) String Returns a string of the form "lat,lng" for this LatLng. We round the lat/lng values to 6 decimal places by default.
Property Return value Description
lat Number (Readonly)Returns the latitude in degrees.
lng Number (Readonly)Returns the longitude in degrees.

Join the official community

New versions will be announced through the official community. Stay tune!

Do you have a question or feature request?

Feel free to ask me on the issues tracker.

Or on the official community is also welcome!


New version 2.0-beta2 is available.

The cordova-googlemaps-plugin v2.0 has more faster, more features.

https://github.com/mapsplugin/cordova-plugin-googlemaps-doc/tree/master/v2.0.0/README.md

Clone this wiki locally