# When do i need to refresh the map?

**URL:** <https://community.thinkgeo.com/t/when-do-i-need-to-refresh-the-map/8049>\
**Category:** WPF\
**Created:** [May 26, 2016, 7:41pm UTC](https://community.thinkgeo.com/t/when-do-i-need-to-refresh-the-map/8049 "2016-05-26T19:41:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gal\_Ittah](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/g/cdc98d/32.png) [@Gal\_Ittah](https://community.thinkgeo.com/u/Gal_Ittah)\
**Post date:** [May 26, 2016, 7:41pm UTC](https://community.thinkgeo.com/t/when-do-i-need-to-refresh-the-map/8049/1 "2016-05-26T19:41:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Peter](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/peter/32/19042_2.png) [@Peter](https://community.thinkgeo.com/u/Peter)\
**Post date:** [May 27, 2016, 11:22am UTC](https://community.thinkgeo.com/t/when-do-i-need-to-refresh-the-map/8049/2 "2016-05-27T11:22:49Z")

</div>

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](http://wiki.thinkgeo.com/wiki/map_suite_wpf_desktop_edition_all_samples) 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
