Select to view content in your preferred language

How do I refresh static map?

3089
10
04-29-2014 12:04 PM
AlexanderCrawford
Emerging Contributor
I would like to refresh ArcGIS map on the page when my ajax completes call. I have a function that gets executed when ajax completes call in that function i have:

function onAjaxSuccess()
{

map.setExtent(map.extent);
mapLayer.refresh();

}

but map does not get refreshed.
10 Replies
AlexanderCrawford
Emerging Contributor
I figured it out!

These are the methods that need to be called in ajax onSuccess function

map.destroy();
dojo.addOnLoad(init);


and arcgis reloads the map.
0 Kudos