arcgis runtime sdk for android之mapview方法

上传人:第*** 文档编号:31321078 上传时间:2018-02-06 格式:DOCX 页数:6 大小:28.44KB
返回 下载 相关 举报
arcgis runtime sdk for android之mapview方法_第1页
第1页 / 共6页
arcgis runtime sdk for android之mapview方法_第2页
第2页 / 共6页
arcgis runtime sdk for android之mapview方法_第3页
第3页 / 共6页
arcgis runtime sdk for android之mapview方法_第4页
第4页 / 共6页
arcgis runtime sdk for android之mapview方法_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《arcgis runtime sdk for android之mapview方法》由会员分享,可在线阅读,更多相关《arcgis runtime sdk for android之mapview方法(6页珍藏版)》请在金锄头文库上搜索。

1、MapView中的公有方法int addLayer(Layer layer, int index)添加图层在给定的索引。int addLayer(Layer layer)添加一个图层void addLayers(Layer layerArray)添加图层列表void centerAndZoom(double lat, double lon, float levelOrFactor)MapView 初始化时,缩放到给定的坐标及显示级别。void centerAt(double lat, double lon, boolean animated)MapView 初始化时,缩放到指定坐标, anim

2、ated 表示是否显示动画效果。void centerAt(Point centerPt, boolean animated)MapView 初始化时,缩放到指定 Point,animated 表示是否显示动画效果。BitmapcreateSymbolImage(Symbol symbol, Geometry geometry, int width, int height, int color)这个方法在 API 级别 10.2.2 被弃用。请使用getLegendImage(Symbol, Geometry, int, int, int) 替代。BitmapcreateSymbolImage

3、s(Symbol symbol, Geometry geometry, int width, int height, int color)这个方法在 API 级别 10.2.2 被弃用。请使用getLegendImages(Symbol, Geometry, int, int, int) 替代。void enableWrapAround(boolean enable)启用或禁用旋转地图功能。ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs)Callout getCallout()返回一个气泡弹窗窗口。Point get

4、Center()放回当前 MapView 的中心点。Bitmap getDrawingMapCache(float x, float y, int w, int h)通过屏幕坐标和长宽获取 MapView 截图。Polygon getExtent()返回当前可视区域范围。Grid getGrid()返回地图格网信息,格网的显示状态通过该实例控制。Layer getLayer(int index)通过给定索引获取图层。Layer getLayerByID(long layerID)通过图层 ID 获取图层。Layer getLayerByURL(String url)通过在线地图服务的 Url

5、获取图层。Layer getLayers()获取 MapView 中所有图层。LocationDisplayManagergetLocationDisplayManager()获取位置管理类 LocationDisplayManager.EnvelopegetMapBoundaryExtent()该方法在 API 级别 10.2.2 被弃用。使用 getMaxExtent() 代替。Envelope getMaxExtent()获取 MapView 的最大范围。doublegetMaxResolution()该方法在 API 级别 10.2.2 被弃用。使用 getMinScale() 代替。

6、double getMaxScale()返回最大比例尺。doublegetMinResolution()该方法在 API 级别 10.2.2 被弃用。使用 double getMinScale()返回最小比例尺。OnLongPressListenergetOnLongPressListener()获取长按事件 OnLongPressListener。OnPanListener getOnPanListener()获取平移事件 OnPanListener。OnPinchListener getOnPinchListener()获取捏恰事件 OnPinchListener。OnSingleTapL

7、istenergetOnSingleTapListener()获取单击事件 onSingleTapListener。OnStatusChangedListenergetOnStatusChangedListener()获取 MapView 状态改变事件 OnStatusChangedListener 。OnZoomListener getOnZoomListener()获取缩放事件 OnZoomListener。double getResolution()返回 MapView 的分辨率。double getRotationAngle()返回当前地图的旋转角度,逆时针方向。double getS

8、cale()获取地图比例尺。SpatialReference getSpatialReference()返回 MapView 空间坐标系统。boolean isAllowOneFingerZoom()返回 true ,是否允许一个手指缩放地图。boolean isAllowRotationByPinch()返回 true ,如果旋转缩放是允许的。boolean isLoaded()返回 true ,如果 MapView 初始化完成。boolean isRecycled()返回 true ,如果 MapView 已回收。boolean isShowMagnifierOnLongPress()检查

9、地图放大镜功能是否启用。void onChildViewAdded(View parent, View child)void onChildViewRemoved(View parent, View child)void pause()暂停地图。void recycle()释放 MapView 引用的资源,以便他们可以回收。void removeAll()删除所有图层。void removeLayer(int index)删除指定索引图层。void removeLayer(Layer layer)删除指定图层。voidrestoreState(String state)利用保存的地图的中心的坐

10、标,当前地图的分辨率 ,和 LocationDisplayManager状态(是否活跃和是否 autopan)字符串恢复信息。StringretainState()保存地图的中心的坐标,当前地图的分辨率 ,和 LocationDisplayManager 状态(是否活跃和是否 autopan)作为一个字符串。void setAllowMagnifierToPanMap(boolean allow)设置当放大镜显示时,是否能够平移地图。void setAllowOneFingerZoom(boolean allowOneFingerZoom)允许/不允许一个手指缩放。void setAllowR

11、otationByPinch(boolean allowRotationByPinch)允许/不允许缩放旋转。void setEsriLogoVisible(boolean visible)打开或关闭 ESRI 的 logo。void setExtent(Geometry geometry, int padding)设置空间范围。void setExtent(Geometry geometry)设置当前地图显示的空间范围。void setExtent(Geometry geometry, int padding, boolean animated)设置空间范围。voidsetMapBackgr

12、ound(int bkColor, int gridColor, float gridSize, float gridLineSize)设置地图背景颜色和网格。boolean setMapOptions(MapOptions options)设置地图底图参数 MapOptions。void setMaxExtent(Envelope env)设置地图显示的边界范围voidsetMaxResolution(double maxResolution)setMinScale(double)void setMaxScale(double maxScale)设置地图最大比例尺。voidsetMinRes

13、olution(double minResolution)setMaxScale(double) 替代。void setMinScale(double minScale)设置底图最小比例尺。void setOnLongPressListener(OnLongPressListener onLongPressListener)设置长按监听事件。void setOnPanListener(OnPanListener onPanListener)设置平移监听事件。void setOnPinchListener(OnPinchListener onPinchListener)设置捏掐监听事件。void

14、 setOnSingleTapListener(OnSingleTapListener onSingleTapListener)设置单击监听事件。void setOnStatusChangedListener(OnStatusChangedListener onStatusChangedListener)设置地图状态改变监听事件。void setOnZoomListener(OnZoomListener onZoomListener)设置放大缩小监听事件。void setResolution(double res)设置分辨率。voidsetRotationAngle(double degree

15、, Point centerPt, boolean animated)在给定点居中显示,并旋转到给定角度。animated 是否启用动画效果。void setRotationAngle(double degree, boolean animated)旋转地图到给定角度,animated 是否启用动画效果。void setRotationAngle(double degree)旋转地图到给定角度。void setRotationAngle(double degree, float pivotX, float pivotY)以某个点为中心旋转地图。void setScale(double scal

16、e, boolean animated)设置地图比例尺;animated 是否启用动画效果。void setScale(double scale)设置底图比例尺。void setShowMagnifierOnLongPress(boolean showMagnifier)设置是否长按启用放大镜功能。FutureswitchBaseMap(BaseMap basemap, Portal portal, OnBaseMapSwitchListener listener)切换底图。Point toMapPoint(float screenx, float screeny)将屏幕上的点转换成地理坐标点。Point toMapPoint(Point src)将屏幕上的点转换成地理坐标点。Point toScreenPoint(Point src)将地理坐标点转换成屏幕上的点。void unpause()取消暂停地图。void zoomTo(Point centerPt, float factor)缩放到给定点。voi

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号