-
Notifications
You must be signed in to change notification settings - Fork 918
Map.fromPointToLatLng
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
If you get an error, feel free to ask me on the official community or the issue list.
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
New versions will be announced through the official community. Stay tune!
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