package com.dhec.MPOS; import com.esri.android.map.MapView; import com.esri.android.map.ags.ArcGISDynamicMapServiceLayer; import com.esri.android.map.ags.ArcGISTiledMapServiceLayer; import android.app.Activity; import android.os.Bundle; public class PopUp extends Activity { MapView map = null; /** Called when the activity is first created. */ public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.popup); // Retrieve the map and initial extent from XML layout map = (MapView) findViewById (R.id.popup); //Layer 0 - Called first map.addLayer(new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services World_Street_Map /MapServer")); //Layer 1 - Called second map.addLayer(new ArcGISDynamicMapServiceLayer("http://TEST/ArcGIS/rest/services/Mobile/MPOS/MapServer")); } }
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.