Centering map at a given position - Unhandled Exception: System.ArgumentOutOfRangeException: The input double value is out of range. Parameter name: percentage

Hi Klaus,

I think your code have some problem.

Because when InternalProjection equal 4326 and ExternalProjection equal 3857, the result of projection.ConvertToExternalProjection(new RectangleShape(-180, 90, 180, -90)) should equal {-61364715.8090785,43988480.2683944,61364715.8090785,-43988484.7436007} but not your result.

And the result looks like:

You can try my sample here, if I missed anything, you can modify the sample and upload it again, so I will help you find the reason.

9566.zip (101.5 KB)

Regards,

Ethan