public interface TencentMapNavi extends TencentMap
TencentMap.AsyncOperateCallback<T>, TencentMap.CancelableCallback, TencentMap.InfoWindowAdapter, TencentMap.OnCameraChangeListener, TencentMap.OnCompassClickedListener, TencentMap.OnDismissCallback, TencentMap.OnIndoorStateChangeListener, TencentMap.OnInfoWindowClickListener, TencentMap.OnMapClickListener, TencentMap.OnMapLoadedCallback, TencentMap.OnMapLongClickListener, TencentMap.OnMapPoiClickListener, TencentMap.OnMarkerClickListener, TencentMap.OnMarkerDragListener, TencentMap.OnMyLocationChangeListener, TencentMap.OnPolylineClickListener, TencentMap.OnTrafficEventClickListener, TencentMap.SnapshotReadyCallback
MAP_MODE_NAV, MAP_MODE_NAV_NIGHT, MAP_MODE_NAV_TRAFFIC, MAP_MODE_NORMAL, MAP_MODE_NORMAL_TRAFFIC, MAP_TYPE_DARK, MAP_TYPE_NAVI, MAP_TYPE_NIGHT, MAP_TYPE_NONE, MAP_TYPE_NORMAL, MAP_TYPE_SATELLITE, MAP_TYPE_TRAFFIC_NAVI, MAP_TYPE_TRAFFIC_NIGHT
Modifier and Type | Method and Description |
---|---|
void |
addSegmentsWithRouteName(java.util.List<MapRouteSection> sections,
java.util.List<LatLng> points)
添加路名信息
|
void |
animateToNaviPosition(LatLng mLocation,
float fRotate,
float fTitle) |
void |
animateToNaviPosition(LatLng mLocation,
float fRotate,
float fTitle,
float fDestLevel) |
void |
animateToNaviPosition(LatLng mLocation,
float fRotate,
float fTitle,
float fDestLevel,
boolean bo3D) |
void |
animateToNaviPosition2(LatLng mLocation,
float fRotate,
float fTitle,
float fDestLevel,
boolean bo3D) |
CameraPosition |
calculateZoomToSpanLevelAsync(java.util.List<IOverlay> elements,
java.util.List<LatLng> points,
int leftPadding,
int rightPadding,
int topPadding,
int bottomPadding,
TencentMap.AsyncOperateCallback<CameraPosition> callback)
计算出要在当前底图可视区域内显示一组元素及一组点的比例尺和中心点(有填边)
|
float |
calNaviLevel(LatLngBounds bound,
float skewangle,
int topPadding,
boolean is3d) |
float |
calNaviLevel2(LatLng curPos,
LatLng nextPos,
float skewangle,
float rotateanble,
int topPadding,
boolean is3d) |
float |
calNaviLevel3(LatLng curPos,
LatLng nextPos,
float skewangle,
int leftPadding,
int rightPadding,
int topPadding,
int bottomPadding,
boolean is3d) |
void |
clearRouteNameSegments()
清除路名信息
|
boolean |
isNaviStateEnabled()
导航状态是否开启
|
void |
moveToNavPosition(CameraUpdate cameraupdate,
LatLng mTargetPosition)
把地图变换到指定的状态(导航专用)
|
void |
setNavCenter(int lat,
int lng)
设置导航中心点
|
void |
setNaviFixingProportion(float xratio,
float yratio)
设置固定
|
void |
setNaviFixingProportion2D(float xratio,
float yratio)
设置固定
|
void |
setNaviStateEnabled(boolean enabled)
导航状态开关
|
addCircle, addCustomLayer, addMarker, addOnMapLoadedCallback, addPolygon, addPolyline, addTencentMapGestureListener, addTileOverlay, animateCamera, animateCamera, animateCamera, calculateZoomToSpanLevel, clear, clearAllOverlays, clearCache, enableMultipleInfowindow, getActivedIndoorBuilding, getActivedIndoorFloorNames, getBounderPoints, getCameraPosition, getCityName, getDebugError, getIndoorFloorId, getLanguage, getMapContext, getMapHeight, getMapPadding, getMapStyle, getMapType, getMapWidth, getMaxZoomLevel, getMinZoomLevel, getMyLocation, getProjection, getUiSettings, getVersion, getZoomToSpanLevel, isBlockRouteEnabled, isDestroyed, isHandDrawMapEnable, isMyLocationEnabled, isSateLiteEnable, isTrafficEnabled, loadKMLFile, moveCamera, removeOnMapLoadedCallback, removeTencentMapGestureListener, setBlockRouteEnabled, setBuildingEnable, setCameraCenterProportion, setCameraCenterProportion, setCustomRender, setDrawPillarWith2DStyle, setForeignLanguage, setHandDrawMapEnable, setIndoorEnabled, setIndoorFloor, setIndoorFloor, setInfoWindowAdapter, setLocationSource, setMapCenterAndScale, setMapStyle, setMapType, setMaxZoomLevel, setMinZoomLevel, setMyLocationEnabled, setMyLocationStyle, setOnCameraChangeListener, setOnCompassClickedListener, setOnIndoorStateChangeListener, setOnInfoWindowClickListener, setOnMapClickListener, setOnMapLoadedCallback, setOnMapLongClickListener, setOnMapPoiClickListener, setOnMarkerClickListener, setOnMarkerDragListener, setOnMyLocationChangeListener, setOnPolylineClickListener, setOnTapMapViewInfoWindowHidden, setOnTrafficEventClickListener, setPadding, setPadding, setPointToCenter, setPoisEnabled, setRestrictBounds, setSatelliteEnabled, setTencentMapGestureListener, setTrafficEnabled, snapshot, snapshot, stopAnimation
void animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle)
void animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle, float fDestLevel)
void animateToNaviPosition(LatLng mLocation, float fRotate, float fTitle, float fDestLevel, boolean bo3D)
void animateToNaviPosition2(LatLng mLocation, float fRotate, float fTitle, float fDestLevel, boolean bo3D)
float calNaviLevel(LatLngBounds bound, float skewangle, int topPadding, boolean is3d)
float calNaviLevel2(LatLng curPos, LatLng nextPos, float skewangle, float rotateanble, int topPadding, boolean is3d)
float calNaviLevel3(LatLng curPos, LatLng nextPos, float skewangle, int leftPadding, int rightPadding, int topPadding, int bottomPadding, boolean is3d)
void setNaviFixingProportion(float xratio, float yratio)
xratio
- yratio
- void setNaviFixingProportion2D(float xratio, float yratio)
xratio
- yratio
- void clearRouteNameSegments()
void moveToNavPosition(CameraUpdate cameraupdate, LatLng mTargetPosition)
cameraupdate
- 状态对象 参见CameraUpdate
CameraPosition calculateZoomToSpanLevelAsync(java.util.List<IOverlay> elements, java.util.List<LatLng> points, int leftPadding, int rightPadding, int topPadding, int bottomPadding, TencentMap.AsyncOperateCallback<CameraPosition> callback)
elements
- 要显示在底图上的元素points
- 要显示在底图上的点leftPadding
- 要显示的元素和点距离底图左边的边距rightPadding
- 要显示的元素和点距离底图右边的边距topPadding
- 要显示的元素和点距离底图上边的边距bottomPadding
- 要显示的元素和点距离底图下边的边距callback,
- 异步回调void addSegmentsWithRouteName(java.util.List<MapRouteSection> sections, java.util.List<LatLng> points)
sections
- 路段信息points
- 路线点集void setNavCenter(int lat, int lng)
lat
- lng
- void setNaviStateEnabled(boolean enabled)
enabled
- boolean isNaviStateEnabled()