-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert point to latitude and longitude #496
Comments
@hossein-hbb not sure I understand. You can't use the mapstate functions because you do not have access to it? And therefore you need a conversion between the TMS tileschema and lat/long? |
I try to modify plugin and add my custom parameters in plugin like this: |
But when I use pointToLatLng or usemap.unproject return wrong values for lat and lng... |
I need change methode like this :
|
It might be you are missing some pieces in the conversion.
As you can see you need to consider the pixelOrigin also. Might that be your problem? |
Can you explain e.localPosition . |
In my case I had an event from a GestureDetector. That part will not be of use for you, since you are converting tiles positions. I wanted to show you more the pixelOrigin part. I am starting to have the feeling that you just need to convert the tile position index to lat/long?
Rationale behind it is found here: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
…nt (#1115) * Added MapController.pointToLatLng() to get LatLng of given screen point Ref #496, ref #607, ref #981, ref #1010 * Better pointToLatLng example * dartfmt * Fix zoom breaking pointToLatLng() * Updated example to help fix the rotation issue * Rebased on latest * Fix pointToLatLng with rotation * Fix trailing lines (3x attempts) Co-authored-by: Polo <gitpjp@pm.me> and ibrierley
Hi i need latitude and longitude inside getTileUrl function but I can't usemap.unproject or crs.pointToLatLng but result isn't real result.
Is there any way to solve my problem ?
The text was updated successfully, but these errors were encountered: