ArcGIS Runtime SDK for Android之mapView方法.doc_第1页
ArcGIS Runtime SDK for Android之mapView方法.doc_第2页
ArcGIS Runtime SDK for Android之mapView方法.doc_第3页
ArcGIS Runtime SDK for Android之mapView方法.doc_第4页
ArcGIS Runtime SDK for Android之mapView方法.doc_第5页
已阅读5页,还剩1页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

MapView中的公有方法intaddLayer(Layerlayer, int index)添加图层在给定的索引。intaddLayer(Layerlayer)添加一个图层voidaddLayers(LayerlayerArray)添加图层列表voidcenterAndZoom(double lat, double lon, float levelOrFactor)MapView初始化时,缩放到给定的坐标及显示级别。voidcenterAt(double lat, double lon, boolean animated)MapView初始化时,缩放到指定坐标,animated表示是否显示动画效果。voidcenterAt(PointcenterPt, boolean animated)MapView初始化时,缩放到指定Point,animated表示是否显示动画效果。BitmapcreateSymbolImage(Symbolsymbol,Geometrygeometry, int width, int height, int color)这个方法在API 级别10.2.2 被弃用。请使用getLegendImage(Symbol, Geometry, int, int, int)替代。BitmapcreateSymbolImages(Symbolsymbol,Geometrygeometry, int width, int height, int color)这个方法在API 级别10.2.2 被弃用。请使用getLegendImages(Symbol, Geometry, int, int, int)替代。voidenableWrapAround(boolean enable)启用或禁用旋转地图功能。ViewGroup.LayoutParamsgenerateLayoutParams(AttributeSet attrs)CalloutgetCallout()返回一个气泡弹窗窗口。PointgetCenter()放回当前MapView的中心点。BitmapgetDrawingMapCache(float x, float y, int w, int h)通过屏幕坐标和长宽获取MapView截图。PolygongetExtent()返回当前可视区域范围。GridgetGrid()返回地图格网信息,格网的显示状态通过该实例控制。LayergetLayer(int index)通过给定索引获取图层。LayergetLayerByID(long layerID)通过图层ID获取图层。LayergetLayerByURL(String url)通过在线地图服务的Url获取图层。LayergetLayers()获取MapView中所有图层。LocationDisplayManagergetLocationDisplayManager()获取位置管理类LocationDisplayManager.EnvelopegetMapBoundaryExtent()该方法在API 级别 10.2.2被弃用。使用getMaxExtent()代替。EnvelopegetMaxExtent()获取MapView的最大范围。doublegetMaxResolution()该方法在API 级别10.2.2被弃用。使用getMinScale()代替。doublegetMaxScale()返回最大比例尺。doublegetMinResolution()该方法在API 级别10.2.2被弃用。使用doublegetMinScale()返回最小比例尺。OnLongPressListenergetOnLongPressListener()获取长按事件 OnLongPressListener。OnPanListenergetOnPanListener()获取平移事件 OnPanListener。OnPinchListenergetOnPinchListener()获取捏恰事件 OnPinchListener。OnSingleTapListenergetOnSingleTapListener()获取单击事件 onSingleTapListener。OnStatusChangedListenergetOnStatusChangedListener()获取MapView状态改变事件 OnStatusChangedListener 。OnZoomListenergetOnZoomListener()获取缩放事件 OnZoomListener。doublegetResolution()返回 MapView的分辨率。doublegetRotationAngle()返回当前地图的旋转角度,逆时针方向。doublegetScale()获取地图比例尺。SpatialReferencegetSpatialReference()返回MapView空间坐标系统。booleanisAllowOneFingerZoom()返回true ,是否允许一个手指缩放地图。booleanisAllowRotationByPinch()返回true ,如果旋转缩放是允许的。booleanisLoaded()返回true ,如果MapView初始化完成。booleanisRecycled()返回true ,如果MapView已回收。booleanisShowMagnifierOnLongPress()检查地图放大镜功能是否启用。voidonChildViewAdded(View parent, View child)voidonChildViewRemoved(View parent, View child)voidpause()暂停地图。voidrecycle()释放MapView引用的资源,以便他们可以回收。voidremoveAll()删除所有图层。voidremoveLayer(int index)删除指定索引图层。voidremoveLayer(Layerlayer)删除指定图层。voidrestoreState(String state)利用保存的地图的中心的坐标,当前地图的分辨率,和LocationDisplayManager状态(是否活跃和是否autopan)字符串恢复信息。StringretainState()保存地图的中心的坐标,当前地图的分辨率,和LocationDisplayManager状态(是否活跃和是否autopan)作为一个字符串。voidsetAllowMagnifierToPanMap(boolean allow)设置当放大镜显示时,是否能够平移地图。voidsetAllowOneFingerZoom(boolean allowOneFingerZoom)允许/不允许一个手指缩放。voidsetAllowRotationByPinch(boolean allowRotationByPinch)允许/不允许缩放旋转。voidsetEsriLogoVisible(boolean visible)打开或关闭ESRI的logo。voidsetExtent(Geometrygeometry, int padding)设置空间范围。voidsetExtent(Geometrygeometry)设置当前地图显示的空间范围。voidsetExtent(Geometrygeometry, int padding, boolean animated)设置空间范围。voidsetMapBackground(int bkColor, int gridColor, float gridSize, float gridLineSize)设置地图背景颜色和网格。booleansetMapOptions(MapOptionsoptions)设置地图底图参数MapOptions。voidsetMaxExtent(Envelopeenv)设置地图显示的边界范围voidsetMaxResolution(double maxResolution)setMinScale(double)voidsetMaxScale(double maxScale)设置地图最大比例尺。voidsetMinResolution(double minResolution)setMaxScale(double)替代。voidsetMinScale(double minScale)设置底图最小比例尺。voidsetOnLongPressListener(OnLongPressListeneronLongPressListener)设置长按监听事件。voidsetOnPanListener(OnPanListeneronPanListener)设置平移监听事件。voidsetOnPinchListener(OnPinchListeneronPinchListener)设置捏掐监听事件。voidsetOnSingleTapListener(OnSingleTapListeneronSingleTapListener)设置单击监听事件。voidsetOnStatusChangedListener(OnStatusChangedListeneronStatusChangedListener)设置地图状态改变监听事件。voidsetOnZoomListener(OnZoomListeneronZoomListener)设置放大缩小监听事件。voidsetResolution(double res)设置分辨率。voidsetRotationAngle(double degree,PointcenterPt, boolean animated)在给定点居中显示,并旋转到给定角度。animated是否启用动画效果。voidsetRotationAngle(double degree, boolean animated)旋转地图到给定角度,animated 是否启用动画效果。voidsetRotationAngle(double degree)旋转地图到给定角度。voidsetRotationAngle(double degree, float pivotX, float pivotY)以某个点为中心旋转地图。voidsetScale(double scale, boolean animated)设置地图比例尺;animated是否启用动画效果。voidsetScale(double scale)设置底图比例尺。voidsetShowMagnifierOnLongPress(boolean showMagnifier)设置是否长按启用放大镜功能。FutureswitchBaseMap(BaseMapbasemap,Portalportal,OnBaseMapSwitchListenerlistener)切换底图。PointtoMapPoint(float screenx, float screeny)将屏幕上的点转换成地理坐标点。PointtoMapPoint(Pointsrc)将屏幕上的点转换成地理坐标点。PointtoScreenPoint(Pointsrc)将地理坐标点转换成屏幕上的点。voidunpause()取消暂停地图。voidzoomTo(Pointcente

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论