ArcGIS runtime SDK for Android

arcgis 手机安卓端开发

资料目录

github:https://github.com/Esri/arcgis-runtime-samples-android

开发api文档

https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime

官方示例

https://developers.arcgis.com/labs/?product=Android&topic=any

 

 

 

 

 

MapView

public final class MapView
extends GeoView
A MapView renders the data from an  ArcGISMap in an Android layout, and allows users to interact with the map.

MapView indirectly inherits from android's ViewGroup; in a Model View Controller (MVC) architecture, use it to represent the MVC view, and the ArcGISMap to represent the MVC model. You can define the size and layout properties of a MapView in layout XML, or create it programmatically. In either case, call setMap to set the content to be displayed. The mapview will automatically load the map, its basemap, operational layers, and display their contents on screen. Refer to the ArcGISMap class for more information.

MapView inherits from GeoView and adds 2D specific methods for map navigation that set the visible area of the map (the current extent) by setting a Viewpoint. For example, setViewpointGeometryAsync zooms the map to the extent of a geometry, and setViewpointCenterAsync zooms the map to a given scale, centered at the given Point. More setViewpoint methods are available, including overloads where an animation duration can be specified. Geometries passed to these methods will be automatically re-projected if required. Use isNavigating or NavigationChangedListener to determine if navigation is ongoing or completed. Once navigation is complete, get the new viewpoint from getCurrentViewPoint.

By default, you can pan, zoom, and rotate the map using a set of standard gestures like double-tap and pinch; for more details see DefaultMapViewOnTouchListener. You can also override standard gestures by creating your own touch listener class. To do this, either implement MapView.OnTouchListener, or inherit from DefaultMapViewOnTouchListener, and pass an instance of your touch listener class to setOnTouchListener.

Since:
100.0.0

 

转载于:https://www.cnblogs.com/5igis/p/5igis_12571.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值