private function refreshLayers():void { var pd:Number = map.panDuration; map.panDuration = 15; var layers:Array = getLayers(); for each(var layer:Object in layers) { var dLayer:ArcGISDynamicMapServiceLayer = layer as ArcGISDynamicMapServiceLayer; dLayer.disableClientCaching = true; map.panDown(); dLayer.refresh(); map.panUp(); } } map.panDuration = pd; }
You could try a similar fix by implementing the same thing in your custom layer. When disableClientCaching is true, it just adds a _ts url parameter with the current time. This way every url requested is different.Code:reqVars._ts = new Date().time
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.