ThinkGeo.com    |     Documentation    |     Premium Support

Refresh only one Layer

Deal All,
I have an issue, I am trying to refresh only one layer, but it’s refresh whole map.
how can I refresh only one layer.

Please check attached project sample2.aspx and suggest me how to fix this issue.

WebApplication_Samples.zip (2.8 MB)

Note : I am not attached Countries.shp file because of Max limit exceeds.

Thanks,
Riyaz

Hi Riyaz,

In your code, the map is placed in UpdatePanel, so when you try to refresh it, the whole map will be loaded.

If you only want to refresh one overlay(our overlay in server side is layer in client side), you should want to implement that by JavaScript code, please refer this topic: Refresh Some, not all overlays, Gary’s code should works for that.

Wish that’s helpful.

Regards,

Ethan

Hi Ethan,
Thanks. it’s work out.

Thanks,
Riyaz

Hi Riyaz,

I am glad to hear that works.

Regards,

Ethan