Select to view content in your preferred language

Problem with ArcGISTiledMapServiceLayer and ArcGISDinamicMapServiceLayer

1988
1
12-12-2012 12:46 AM
ANGELRUIZ
New Contributor
That´s the problem I have, I want to add to a esri Mapview one ArcGISTiledMapServiceLayer and then other two different ArcGISDinamicMapServiceLayer and i get this error:

12-12 11:32:42.015: E/ArcGIS(10935): ImageCallback.onError
12-12 11:32:42.015: E/ArcGIS(10935): com.esri.core.io.EsriServiceException: Not Found
12-12 11:32:42.015: E/ArcGIS(10935): at com.esri.core.internal.b.a.b.a(Unknown Source)
12-12 11:32:42.015: E/ArcGIS(10935): at com.esri.core.internal.b.a.a.a(Unknown Source)
12-12 11:32:42.015: E/ArcGIS(10935): at com.esri.core.internal.a.a.g.b(Unknown Source)
12-12 11:32:42.015: E/ArcGIS(10935): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.getImage(Unknown Source)
12-12 11:32:42.015: E/ArcGIS(10935): at com.esri.android.map.DynamicLayer$1.run(Unknown Source)
12-12 11:32:42.015: E/ArcGIS(10935): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-12 11:32:42.015: E/ArcGIS(10935): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-12 11:32:42.015: E/ArcGIS(10935): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-12 11:32:42.015: E/ArcGIS(10935): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-12 11:32:42.015: E/ArcGIS(10935): at java.lang.Thread.run(Thread.java:856)
12-12 11:32:42.273: E/ArcGIS(10935): ImageCallback.onError
12-12 11:32:42.273: E/ArcGIS(10935): com.esri.core.io.EsriServiceException: Not Found
12-12 11:32:42.273: E/ArcGIS(10935): at com.esri.core.internal.b.a.b.a(Unknown Source)
12-12 11:32:42.273: E/ArcGIS(10935): at com.esri.core.internal.b.a.a.a(Unknown Source)
12-12 11:32:42.273: E/ArcGIS(10935): at com.esri.core.internal.a.a.g.b(Unknown Source)
12-12 11:32:42.273: E/ArcGIS(10935): at com.esri.android.map.ags.ArcGISDynamicMapServiceLayer.getImage(Unknown Source)
12-12 11:32:42.273: E/ArcGIS(10935): at com.esri.android.map.DynamicLayer$1.run(Unknown Source)
12-12 11:32:42.273: E/ArcGIS(10935): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390)
12-12 11:32:42.273: E/ArcGIS(10935): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
12-12 11:32:42.273: E/ArcGIS(10935): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
12-12 11:32:42.273: E/ArcGIS(10935): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
12-12 11:32:42.273: E/ArcGIS(10935): at java.lang.Thread.run(Thread.java:856)

and the dinamycLayer do not display their graphics.

If I use three ArcGISTiledMapServiceLaye I have no problem.

Is there any option to have ArcGISTiledMapServiceLayer and ArcGISDinamicMapServiceLayer in the same mapview without that ImageCallback.onErrors????
0 Kudos
1 Reply
DanO_Neill
Deactivated User
Yes, the SDK supports multiple layers on a map.  Are your service URL's public?  If so, can you share them? Below is an example of layers from ArcGIS Online:

ArcGISTiledMapServiceLayer streetLayer = new ArcGISTiledMapServiceLayer(
                "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
ArcGISDynamicMapServiceLayer popLayer = new ArcGISDynamicMapServiceLayer(
                "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Population_World/MapServer");


Just add them to your map

        mMapView.addLayer(streetLayer);
        mMapView.addLayer(popLayer);


Here is a screenshot of the 2 layers

[ATTACH=CONFIG]20047[/ATTACH]
0 Kudos