I need refresh map dynamic layers using javascript. I need to do some processing on the client side then have a method called on the server side to redraw the dynamic layers.
I have tried the following; however it does not make a server side call for me to reload map features.
How do I make this work
Thanks
- Amod
<img onclick="dosomething()">
function dosomething() {
//do client side processing here
// then call server side to redraw the map preferable without a page reload
// the below does not call any server side methods and hence I cant use it
var dynamicOverlay = myMap.getLayer("DynamicOverlay");
dynamicOverlay.redraw(true);
}