Hi,
My question is easy, how do we refresh these overlays when returning from server after an Ajax call?
thanks.
jm.
Hi,
My question is easy, how do we refresh these overlays when returning from server after an Ajax call?
thanks.
jm.
Hello Jean-marie,
The way to refresh these two overlay is same as refresh layeroverlay, just use map.getLayer(‘overlayname’).redraw(true);
But please notice, the HighlightOverlay is a overlay user can’t assign it, so the name is always the map.getLayer(‘HighlightOverlay’).redraw(true)
The DynamicOverlay’s name is the the name when user created, like Map1.DynamicOverlay = new LayerOverlay(“DynamicName”), then you need map.getLayer(‘DynamicName’).redraw(true).
Please feel free to let us know if you have any queries.
Regards,
Gary