-
Notifications
You must be signed in to change notification settings - Fork 91
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
Zoomlevel shift between Mapsforge and VTM #217
Comments
Yes, try pinch zoom on Android or mouse wheel on Desktop.
Zoom buttons can perform level zoom Above in "Zoomlevel 14 in Cruiser GL (vtm)" screenshot appears the end of zoom 14. |
@Klaus-Tockloth is there still a problem with the zoom levels? An easy way to compare the same zoom in both libraries is to use the "Go to" tool and select same settings. |
Yes, the issue with the zoomlevel is not solved. For me this defect is cruicial because it breaks compatibility between mapsforge and vtm. Let me try to explain it: The rendering of a map object (e.g. a landuse=water) is defined:
Result in mapsforge: rendering starts at zoomlevel 12 BTW: As a "quick hack" in the theme which I have provided for testing, I have decreased all zoomlevel entries (min, max) by one (e.g. 12 -> 11). But this could not be the solution, because for a lot of objects the zoomlevel is defined within the map data (map-writer) and can not be changed. |
Unless I'm overlooking something obvious here, probably you didn't understood my explanation? 🙂 Could you do a quick test? Note that in Mapsforge the zoom levels are fixed, i.e. ..., 11, 12, 13, ... Don't be confused by the debug tile grid in VTM and its mentioned zoom. |
Great ... your last screenshot shows exactly what I expect.
Yes, I switch the zoomlevels with the mouse wheel (btw: I'm on OS X).
With the N and M keys it works as expected (see screenshots). But this reproduces the defect for me:
Maybe an initialization problem. |
Desktop mouse wheel or Android zoom buttons or any other control performing zoom in predefined steps, progresses from current scale by a fixed percentage. So the start clearly affects the result. BTW check Cruiser GL keyboard shortcuts in Help menu, they're quite handy. 🙂 Are maps AAA and BBB from different regions? |
|
@Klaus-Tockloth can we close this? I don't see VTM zoom having anything wrong, the fixed zoom levels are the same with Mapsforge. |
Yes I agree, this issue can be closed. The VTM library is working compatible with the Mapsforge lib. The point here was an issue within the app (which uses VTM): The app must ensure the correct handling of the continous zoomlevel feature. |
Ok I'm closing this, thanks @Klaus-Tockloth for the useful conversation! |
It seems that there is a basic zoomlevel shift by minus one (-1) in VTM. In other words: What I get in Mapsforge in ZL 18 is equal to what I get in VTM in ZL 17.
Mapsforge zoomlevel 18:
![screenshot_2016-10-30-06-15-38](https://cloud.githubusercontent.com/assets/5493128/19834676/49feec8e-9e6a-11e6-8a90-97e2b308b736.png)
VTM zoomlevel 17:
![screenshot_2016-10-30-06-07-37](https://cloud.githubusercontent.com/assets/5493128/19834683/79127f40-9e6a-11e6-8dc9-a435f43ea13d.png)
The text was updated successfully, but these errors were encountered: