-
Notifications
You must be signed in to change notification settings - Fork 407
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
Fractional Zoom using WinForms version #46
Comments
..yes its a tricky business, offset and scaling matrix is at play |
Fantastic control by the way! Based on what I can see, it looks like the panning is handled by the TranslateTransform. The scaling is handled by the two lines in FromLatLngToLocal:
The thing I have not yet figured out is why the Core.renderOffset gets updated correctly when zooming in whole number, but not when the zooming is fractional. Anyone get anywhere with this? |
check https://github.com/radioman/greatmaps/blob/master/GMap.NET.Core/GMap.NET.Internals/Core.cs#L670 compensationOffset is equal positionPixel on zoom |
@TAlecksen, please do share your work if you come across any solution. I've the same issue, and trying to use ScaleTransform but it's tricky and only limited to WPF. |
@AliFlux I most certainly will if I manage to get anywhere. |
It appears the fractional zoom capability is not working as stated in the code itself. I have attempted to resolve this for a few days now with no luck. Although it works fine when zooming from a 'centered' location, once the map is panned a little and then I attempt to zoom in (with fractional zoom on) the map appears to be off center until the zoom level reaches a whole number again, at which point it gets centered to the correct location.
Does anyone have any insight on how to resolve this? I suspect the fix is in the DrawGraphics method, but I still have a long way to go to understand how the Core.renderOffset is utilized in order to resolve the problem itself.
The text was updated successfully, but these errors were encountered: