hi everyone,i am quite newbie on Javascript API, what i am trying to do is:i added new layers to the map and need to refresh or reload the map so i can see the new layer i tried many way mentioned here but nothing workshttp://forums.esri.com/Thread.asp?c=158&f=2396&t=259812this is the error i get always.[08:59:28.833] _547 is undefined @ http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5compact:48here is my code for this idea map.removeLayer(tiledMapServiceLayer); map.removeLayer(dynamicMapServiceLayer); var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("url"); map.addLayer(tiledMapServiceLayer); var dynamicMapServiceLayer = new esri.layers.ArcGISDynamicMapServiceLayer("url"); map.addLayer(dynamicMapServiceLayer); map.setExtent(map.extent);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.