GetMaxZoomToFitRect

Topics: Bugs
Jun 17, 2012 at 3:26 PM
Edited Jun 17, 2012 at 3:49 PM

"GetMaxZoomToFitRect" In Core.cs returns MaxZoom if width or height of Rect equal to zero, that means for example to get best fit for a map with only one marker we got illegally zoom level of max (that is a rect stands for a point)

I fix it with

if(rect.HeightLat == 0 || rect.WidthLng == 0)

    return maxZoom / 2;

It seems to be ok but needs a better look.

Special thanks to Greatmaps for its powerful and well defined proffessional doing job.

Coordinator
Jul 16, 2012 at 4:13 PM

fixed, thanks