getBoundingBox(0) giving weird results #1086
Replies: 4 comments 3 replies
-
Example: I used A second later (to allow for animation) I checked the value of I a different test with the same target bounds I got this: N 20° 05.481' · E 004° 15.925',N 20° 08.371' · E 004° 17.704' - both is completely unrelated to the bounds I requested the map to zoom to. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Are you sure there isn't a thread issue? |
Beta Was this translation helpful? Give feedback.
-
Can you create a small code example showing the report? If it is reproducible, it would be easier to check what is going on. When using |
Beta Was this translation helpful? Give feedback.
-
To my understanding (but I may be wrong), getBoundingBox(0) returns the minimum box of the map's current viewport in lat/lon format.
This sometimes works, at other times I get seemingly weird results like a small area around 0/0 or some other coordinates unrelated to the viewport currently being displayed on the map.
Observation is with Mapsforge offline maps, with either a single offline map or in "combined" mode. (Haven't tried online maps yet.)
What is the correct way to get the actual coordinates of top/left and bottom/right corner for the map?
Beta Was this translation helpful? Give feedback.
All reactions