radioman / greatmaps

GMap.NET - Great Maps for Windows Forms & Presentation
912 stars 408 forks source link

Error in the maps.ondrag when the Zoom is not a integer #103

Open Alep52 opened 6 years ago

Alep52 commented 6 years ago

When you execute a maps.ondrag and the zoom is fractional, the coordinate calculation on the maps is followed by using as a reference the zoom as integer instead of fractional for which returns incorrect coordinates, and of course being a scale error this error is so the greater the displacement that is carried out with the drag. The feeling that it has is that in the relative subroutine the program uses in this case the variable zoom as integer instead of a number with decimals. If the zoom is an integer this problem does not occur. Sorry for my Google english