Is there a quick way to refresh the map, or redraw all the overlay layers in the map, on the client side. Right now we’ve been using Map1.redrawLayer(“id”) which works great but sometimes the id’s are different names. Can I use index values instead? Like for example:
for(var i = 0; i < map1.getNumLayers(); i++)
{
Map1.redrawLayer;
}
Or is there a singleline function to redraw all open overlay layers?
Client Side Map Refresh
for (var i = 0; i < Map1.getNumLayers() ; i++)
{
Map1.redrawLayer(Map1.layers.id);
}
Hi Chad,
Please try the following code:
Any questions please let us know.
Thanks,
Peter