Skip to content

Map.fromPointToLatLng

Masashi Katsumata edited this page Apr 1, 2015 · 1 revision

The fromPointToLatLng method converts a screen location that pixel-distance from the top-left of the map div to a geographical coordinate (LatLng).

###Description The fromPointToLatLng method returns a screen location that corresponds to a geographical coordinate (LatLng). The screen location is in screen pixels (not display pixels) relative to the top-left of the map div (not of the whole screen or window / body size).

###Parameters

fromPointToLatLng([x,y], function(LatLng) {})

The first parameter is checked to see if it's a dom element. If it is not a dom element it will be treated as map initialization options and the second value will be ignored. If it is a dom element it will be used and the params parameter will be set as map initialization options.

###Code

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