[ArcGIS for android學習]com.esri.android.map下面有些什麼

我覺得在應用程序裏,有兩個東西很重要,一個是裝地圖的容器com.esri.android.map.MapView,一個是被容器裝的地圖com.esri.android.map.Layer

com.esri.android.map.MapView的繼承關係是extends android.view.ViewGroup

而com.esri.android.map.Layer則是extends java.lang.Object

com.esri.android.map.MapView

MapView通過

 int addLayer(Layer layer)
          Adds the child Layer.
 int addLayer(Layer layer, int index)
          Adds the child Layer at the given index.
 void addLayers(Layer[] layerArray)
          Adds the Layer array.
 Layer getLayer(int index)
          Gets a layer at the given index.
 Layer getLayerByURL(String url)
          Gets a layer by its service URL.
 Layer[] getLayers()
          Returns all child Layers that are added to the MapView.
六個方法和Layer發生聯繫

com.esri.android.map.Layer

繼承自Layer 的有DynamicLayer, GraphicsLayer, GroupLayer, TiledLayer



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章