How to refresh map or layer using Javascript API
Basically when a user is adding or deleting features I would like to refresh the map to reflect the change.
In the workflow there is an activity called refreshmap that takes a map serviceId
I would like to know how to do this through the javascript API?
Not sure if there is a refresh map method or if I have to use something like
site.essentialsMap.exportMap(param, param, param);
Any help would be usefull
thanks
Jason Lazaro
0
-
viewer .site.essentialsMap.findMapServiceById( <essentialsmapserviceId> ).serviceLayer.refresh();
(if using in your own module, you would type this.app. site.essentialsMap.findMapServiceById( MapserviceId ).serviceLayer.refresh();
Cheers :)
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar