public class CldMap
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
CldMap.NaviInitListener
导航初始化监听器
|
static interface |
CldMap.OnMapClickListener
地图单击事件监听接口
|
static interface |
CldMap.OnMapDoubleClickListener
地图双击事件监听接口
|
static interface |
CldMap.OnMapDoubleFingerMapStatusTypeChangeListener
地图双指操作地图改变模式监听事件
|
static interface |
CldMap.OnMapDoubleFingerOverlookAngleChangeListener
地图双指倾斜地图角度监听事件
|
static interface |
CldMap.OnMapDoubleFingerRotateListener
地图双指旋转事件监听接口
|
static interface |
CldMap.OnMapDoubleFingerZoomListener
地图双指缩放事件监听接口
|
static interface |
CldMap.OnMapHotSpotClickListener
地图热区点击接口
|
static interface |
CldMap.OnMapLongClickListener
地图长按事件监听接口
|
static interface |
CldMap.OnMapMovingListener
地图移动结束事件监听器
|
static interface |
CldMap.OnMapRouteSelectListener
地图路径点击旋转监听器
|
static interface |
CldMap.OnMarkerClickListener
地图 Marker 覆盖物点击事件监听接口
|
public final void setOnMapClickListener(CldMap.OnMapClickListener listener)
listener
- - 地图单击事件监听者public final void setOnMapLongClickListener(CldMap.OnMapLongClickListener listener)
listener
- - 地图长按事件监听者public final void setOnMapDoubleClickListener(CldMap.OnMapDoubleClickListener listener)
listener
- - 地图双击事件监听者public final void setOnMapDoubleFingerZoomListener(CldMap.OnMapDoubleFingerZoomListener listener)
listener
- - 地图双子缩放事件监听者public final void setOnMapDoubleFingerRotateListener(CldMap.OnMapDoubleFingerRotateListener listener)
listener
- - 地图双指旋转事件监听者public final void setOnMapDoubleFingerOverlookAngleListener(CldMap.OnMapDoubleFingerOverlookAngleChangeListener listener)
listener
- - 地图双指倾斜事件监听者public final void setOnMapDoubleFingerMapStatusTypeChangeListener(CldMap.OnMapDoubleFingerMapStatusTypeChangeListener listener)
listener
- - 地图双指倾斜事件监听者public void setOnMarkerClickListener(CldMap.OnMarkerClickListener listener)
listener
- - Marker 覆盖物点击事件监听者public void setOnMapMovingListener(CldMap.OnMapMovingListener listener)
listener
- - 地图移动事件监听器public void setOnMapRouteSelectListener(CldMap.OnMapRouteSelectListener listener)
listener
- - 地图路径旋转监听器public void setOnMapHotSpotClick(CldMap.OnMapHotSpotClickListener hotSpotClick)
hotSpotClick
- 热区点击监听器public static CldMap.OnMapClickListener getMapClickListener()
public static CldMap.OnMapLongClickListener getMapLongClickListener()
public static CldMap.OnMapDoubleClickListener getMapDoubleClickListener()
public static CldMap.OnMapDoubleFingerZoomListener getMapDoubleFingerZoomListener()
public static CldMap.OnMapDoubleFingerRotateListener getMapDoubleFingerRotateListener()
public static CldMap.OnMapDoubleFingerOverlookAngleChangeListener getMapDoubleFingerOverlookAngleChangeListener()
public static CldMap.OnMapDoubleFingerMapStatusTypeChangeListener getMapDoubleFingerMapStatusTypeChangeListener()
public static CldMap.OnMarkerClickListener getMarkerClickListener()
public static CldMap.OnMapMovingListener getMapMovingListener()
public static CldMap.OnMapRouteSelectListener getMapRouteSelectListener()
public static CldMap.OnMapHotSpotClickListener getMapHotSpotClickListener()
public final void setTrafficEnabled(boolean enabled)
enabled
- - 是否打开交通图层public void setMapViewMode(int modeType)
modeType
- 参考MapStatusType类public void setGestureEnabled(boolean isEnabled)
isEnabled
- true 开启 false 禁用public void zoomIn()
public void zoomOut()
public void setMapCenter(LatLng latLng)
latLng
- -- 中心点坐标public void setMapCenter(java.lang.String kCode)
public void setNMapCenter(LatLng latLng)
latLng
- -- 中心点坐标public void setMapDisplayMode(int displayMode)
displayMode
- 0-白天/黑夜自动切换,1-白天,2-黑夜public final boolean isTrafficEnabled()
public int getMapViewMode()
public boolean getGestureEnabled()
public int getMapDisplayMode()
public Overlay addOverlay(OverlayOptions options)
options
- public void removeOverlay(Overlay overlay)
overlay
- 覆盖物对象public java.util.List<Overlay> addOverlay(java.util.List<OverlayOptions> options)
options
- 列表覆盖物参数public void removeOverlay(java.util.List<Overlay> overlays)
overlay
- 多个覆盖物列表public void removeAllOverlay()
public void setLocationIconEnabled(boolean bShow)
bShow
- 默认true 显示,false 不显示public void setLocationIcon(int drawableId)
drawableId
- 图标资源编号public void enableRouteOverview(boolean isShow)
isShow
- 是否显示全程概览public LatLng getCenterPosition()
public LatLng getCurrentPosition()
public LatLngBounds getMapViewBounds()
public LatLng convertLatlng2ScreenPosition(LatLng latLng)
latLng
- public LatLng convertScreenPosition2Latlng(long x, long y)
x
- y
- public void setMapRotateAngle(int rotateAngle)
rotateAngle
- 旋转角度,为逆时针角度public int getMapRotateAngle()
public void setMapOverlookAngle(int overlookAngle)
overlookAngle
- 俯角角度public int getMapOverlookAngle()
public void update()
public void zoomToSpan(java.util.List<LatLng> latLngs)
latLngs
- 坐标点列表public int getMaxZoomLevel()
public int getMinZoomLevel()
public void setZoomLevel(int level)
level
- 地图缩放级别public int getZoomLevel()
public void showCustomizedLayer(boolean show)
show
- 是否显示覆盖物public boolean isCustomizedLayerVisible()
public int getMaxOverLookAngle()
public void refreshOverlay()
public UiSetting getUiSetting()