ThinkGeo.com    |     Documentation    |     Premium Support

Automatic hide of osm when zooming to unsupported scale

Hi there,

I need to allow my user to zoom-in to centimetrics entities and I have an OpenStreetMap background.
To proceed, I’ve added the following code:
AndroidMap.MinimumScale = 1;

however, when zooming to an unsupported scale, OSM load very slowly tiles showing that the scale is not supported.

How can I do, to simply remove/hide OSM when it’s an unsupported scale ?

Thank you in advance
Patrick.

Hi Patrick,

The OSM min scale is “1126.4644432067871”, map displays no data image when map current scale is smaller than “1126.4644432067871”, so you can hide the OSM when it’s an unsupported scale. Here attached is a simply sample.

LimitScale.zip (12.6 KB)

Thanks,