MapView map = null; String baseMapURL = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"; String dynamicMapURL = "http://gis.hicentral.com/arcgis/rest/services/OperPublicSafety/MapServer"; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.floodzones); map = (MapView) findViewById(R.id.map); initextent = new Envelope(-17622457.3032347, 2439157.37937499, -17546524.1970318, 2457953.93517276); map.setExtent(initextent, 0); ArcGISTiledMapServiceLayer baseMap = new ArcGISTiledMapServiceLayer(baseMapURL); this.map.addLayer(baseMap); ArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(dynamicMapURL); this.map.addLayer(dynamicLayer); dynamicLayer.refresh(); }
<com.esri.android.map.MapView android:id="@+id/map" android:layout_height="fill_parent" android:layout_width="fill_parent" initExtent="-17622457.3032347 2439157.37937499 -17546524.1970318 2457953.93517276"> </com.esri.android.map.MapView>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.