ThinkGeo.com    |     Documentation    |     Premium Support

When do i need to refresh the map?

On my maps I have some entity layers that can have their location and even their symbol change rapidly on the map, what is the best practice to handle all the refresh calls? what api to use, do I refresh on each entity change? can I refresh just that specific entity or do I need to refresh a rectangle or the complete map?

Thanks.

Hi Gal,

Welcome to our forum. Please check the answers below.

**1. What is the best practice to handle all the refresh calls? Can I refresh just that specific entity? **

We can put the layers which often change into one overlay “overlay” and call the method map.Refresh(overlay). In this case the map just refresh the changed overlay.

2. Do I need to refresh a rectangle or the complete map?
When call the method map.Refresh() it just fresh the map in CurrentExtent not all the map.

Also, you can get many samples from our wiki or Product Center.

If there are still something confused, you can provide more information, we can create a sample for you, if it will spend less than 1 hour.

Any questions please let us know.

Hope it’s helpful.

Thanks,
Peter