ThinkGeo.com    |     Documentation    |     Premium Support

Clearing and refresh

Hello,
we are facing problem after refreshing and removing data from the layer.once we clear or remove the data from the layer the map appears to be at the same zoom level but we want it to be at zoom level say 04. how can it be done on refresh.
Thanks and Regards.
Hrishikesh Konde.

Hi Hrishikesh,

The data change won’t change the current extent.

If you want to move the zoomlevel to 04, please just set: map.CurrentScale = new ZoomLevelSet().ZoomLevel04.Scale;

Wish that’s helpful.

Regards,

Ethan

Hello,
Thanks for your help.
Thanks and Regards,
Hrishikesh Konde.

Hi Hrishikesh,

I am glad to hear that’s helpful.

Regards,

Ethan