您的位置:首页 > 移动开发 > Android开发

[ArcGIS for android学习]com.esri.android.map下面有些什么

2012-11-15 22:04 381 查看
我觉得在应用程序里,有两个东西很重要,一个是装地图的容器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
%29]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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: