public class Palmap
extends android.widget.FrameLayout
android.view.ViewGroup.MarginLayoutParams, android.view.ViewGroup.OnHierarchyChangeListenerandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnApplyWindowInsetsListener, android.view.View.OnAttachStateChangeListener, android.view.View.OnCapturedPointerListener, android.view.View.OnClickListener, android.view.View.OnContextClickListener, android.view.View.OnCreateContextMenuListener, android.view.View.OnDragListener, android.view.View.OnFocusChangeListener, android.view.View.OnGenericMotionListener, android.view.View.OnHoverListener, android.view.View.OnKeyListener, android.view.View.OnLayoutChangeListener, android.view.View.OnLongClickListener, android.view.View.OnScrollChangeListener, android.view.View.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListener, android.view.View.OnUnhandledKeyEventListenerCLIP_TO_PADDING_MASK, FOCUS_AFTER_DESCENDANTS, FOCUS_BEFORE_DESCENDANTS, FOCUS_BLOCK_DESCENDANTS, LAYOUT_MODE_CLIP_BOUNDS, LAYOUT_MODE_OPTICAL_BOUNDS, PERSISTENT_ALL_CACHES, PERSISTENT_ANIMATION_CACHE, PERSISTENT_NO_CACHE, PERSISTENT_SCROLLING_CACHEACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH, AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR, AUTOFILL_HINT_CREDIT_CARD_NUMBER, AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE, AUTOFILL_HINT_EMAIL_ADDRESS, AUTOFILL_HINT_NAME, AUTOFILL_HINT_PASSWORD, AUTOFILL_HINT_PHONE, AUTOFILL_HINT_POSTAL_ADDRESS, AUTOFILL_HINT_POSTAL_CODE, AUTOFILL_HINT_USERNAME, AUTOFILL_TYPE_DATE, AUTOFILL_TYPE_LIST, AUTOFILL_TYPE_NONE, AUTOFILL_TYPE_TEXT, AUTOFILL_TYPE_TOGGLE, DRAG_FLAG_GLOBAL, DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION, DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION, DRAG_FLAG_GLOBAL_URI_READ, DRAG_FLAG_GLOBAL_URI_WRITE, DRAG_FLAG_OPAQUE, DRAWING_CACHE_QUALITY_AUTO, DRAWING_CACHE_QUALITY_HIGH, DRAWING_CACHE_QUALITY_LOW, EMPTY_STATE_SET, ENABLED_FOCUSED_SELECTED_STATE_SET, ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_FOCUSED_STATE_SET, ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, ENABLED_SELECTED_STATE_SET, ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, ENABLED_STATE_SET, ENABLED_WINDOW_FOCUSED_STATE_SET, FIND_VIEWS_WITH_CONTENT_DESCRIPTION, FIND_VIEWS_WITH_TEXT, FOCUS_BACKWARD, FOCUS_DOWN, FOCUS_FORWARD, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_UP, FOCUSABLE, FOCUSABLE_AUTO, FOCUSABLES_ALL, FOCUSABLES_TOUCH_MODE, FOCUSED_SELECTED_STATE_SET, FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, FOCUSED_STATE_SET, FOCUSED_WINDOW_FOCUSED_STATE_SET, GONE, HAPTIC_FEEDBACK_ENABLED, IMPORTANT_FOR_ACCESSIBILITY_AUTO, IMPORTANT_FOR_ACCESSIBILITY_NO, IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS, IMPORTANT_FOR_ACCESSIBILITY_YES, IMPORTANT_FOR_AUTOFILL_AUTO, IMPORTANT_FOR_AUTOFILL_NO, IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS, IMPORTANT_FOR_AUTOFILL_YES, IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS, INVISIBLE, KEEP_SCREEN_ON, LAYER_TYPE_HARDWARE, LAYER_TYPE_NONE, LAYER_TYPE_SOFTWARE, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_RTL, MEASURED_HEIGHT_STATE_SHIFT, MEASURED_SIZE_MASK, MEASURED_STATE_MASK, MEASURED_STATE_TOO_SMALL, NO_ID, NOT_FOCUSABLE, OVER_SCROLL_ALWAYS, OVER_SCROLL_IF_CONTENT_SCROLLS, OVER_SCROLL_NEVER, PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET, PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_STATE_SET, PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_SELECTED_STATE_SET, PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_ENABLED_STATE_SET, PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_SELECTED_STATE_SET, PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_FOCUSED_STATE_SET, PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET, PRESSED_SELECTED_STATE_SET, PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET, PRESSED_STATE_SET, PRESSED_WINDOW_FOCUSED_STATE_SET, ROTATION, ROTATION_X, ROTATION_Y, SCALE_X, SCALE_Y, SCREEN_STATE_OFF, SCREEN_STATE_ON, SCROLL_AXIS_HORIZONTAL, SCROLL_AXIS_NONE, SCROLL_AXIS_VERTICAL, SCROLL_INDICATOR_BOTTOM, SCROLL_INDICATOR_END, SCROLL_INDICATOR_LEFT, SCROLL_INDICATOR_RIGHT, SCROLL_INDICATOR_START, SCROLL_INDICATOR_TOP, SCROLLBAR_POSITION_DEFAULT, SCROLLBAR_POSITION_LEFT, SCROLLBAR_POSITION_RIGHT, SCROLLBARS_INSIDE_INSET, SCROLLBARS_INSIDE_OVERLAY, SCROLLBARS_OUTSIDE_INSET, SCROLLBARS_OUTSIDE_OVERLAY, SELECTED_STATE_SET, SELECTED_WINDOW_FOCUSED_STATE_SET, SOUND_EFFECTS_ENABLED, STATUS_BAR_HIDDEN, STATUS_BAR_VISIBLE, SYSTEM_UI_FLAG_FULLSCREEN, SYSTEM_UI_FLAG_HIDE_NAVIGATION, SYSTEM_UI_FLAG_IMMERSIVE, SYSTEM_UI_FLAG_IMMERSIVE_STICKY, SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN, SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION, SYSTEM_UI_FLAG_LAYOUT_STABLE, SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR, SYSTEM_UI_FLAG_LIGHT_STATUS_BAR, SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_VISIBLE, SYSTEM_UI_LAYOUT_FLAGS, TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_GRAVITY, TEXT_ALIGNMENT_INHERIT, TEXT_ALIGNMENT_TEXT_END, TEXT_ALIGNMENT_TEXT_START, TEXT_ALIGNMENT_VIEW_END, TEXT_ALIGNMENT_VIEW_START, TEXT_DIRECTION_ANY_RTL, TEXT_DIRECTION_FIRST_STRONG, TEXT_DIRECTION_FIRST_STRONG_LTR, TEXT_DIRECTION_FIRST_STRONG_RTL, TEXT_DIRECTION_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, TRANSLATION_Z, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y, Z| 构造器和说明 |
|---|
Palmap(android.content.Context context) |
Palmap(android.content.Context context,
android.util.AttributeSet attrs) |
Palmap(java.lang.String name,
android.content.Context context) |
Palmap(java.lang.String name,
android.content.Context context,
android.util.AttributeSet attrs) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addMapModelRenderer(int id,
IModelLoader.FileType fileType,
java.lang.String filePath,
java.lang.String fileName,
boolean merger,
ModelRenderOption option)
添加一个模型渲染
|
<T extends OverlayCell> |
addMapOverlay(T overlayCell)
添加overlay
|
void |
addNavigationRoute(FeatureCollection featureCollection)
添加渲染导航线,将使用default style渲染
|
void |
addNavigationRoute(FeatureCollection featureCollection,
java.lang.String styleName)
添加渲染导航线,将使用指定style渲染
|
void |
addOnMapFloorChangeListener(OnFloorChangeListener onFloorChangeListener)
添加地图楼层改变监听器
|
void |
animateCameraFrame(CameraUpdate update)
相机动画
|
void |
animateCameraFrame(CameraUpdate update,
CameraAnimCallback callback) |
void |
animateCameraFrame(CameraUpdate update,
int durationMs,
CameraAnimCallback callback) |
void |
changeMapBackgroundColor(int color)
改变地图背景色,如果使用了背景图,背景色将不可见
|
void |
changeMapBackgroundImage(int res)
修改地图背景图片
|
boolean |
checkMapInitCompleted()
检查openGL环境是否初始化完成
|
void |
clearCache()
清空本地缓存
|
void |
clearMapGeometryRenderer()
移除所有几何渲染元素
|
void |
clearMapModelRenderer()
移除所有模型渲染元素
|
void |
clearMapOverlay()
移除所有overlay
|
void |
clearMapRoadNetRenderer()
移除所有路网渲染元素
|
void |
clearNavigateRoute()
清除导航线
|
void |
disableF0PlanarGraph()
禁用f0层的渲染
|
void |
disableMapBackgroundImage()
不允许使用地图的背景图
|
void |
disableMapLogo()
不允许使用地图logo
|
void |
drawMapPlanarGraph(PlanarGraph planarGraph)
渲染地图 (默认不重置相机)
|
void |
drawMapPlanarGraph(PlanarGraph planarGraph,
PlanarGraph f0PlanarGraph)
渲染地图 (默认不重置相机)
|
void |
drawMapPlanarGraph(PlanarGraph planarGraph,
PlanarGraph f0PlanarGraph,
boolean resetCamera)
渲染地图
|
void |
enableDynamicNavigate(boolean enable)
是否使用动态导航 true:第一人称 视角跟随 false:第三人称
|
void |
enableF0PlanarGraph()
启用f0层的渲染
|
void |
enableLocationMarker(boolean enable)
设置定位点Mark是否可用
|
void |
enableMapBackgroundImage()
要使用背景图片,必须先允许
|
void |
enableMapCompass(boolean isEnable)
显示指南针控件
|
void |
enableMapFloorView(boolean isEnable)
显示楼层组件
|
void |
enableMapLogo()
允许使用地图logo
|
void |
enableMapScaleView(boolean isEnable)
显示比列尺控件
|
void |
enableMapZoomView(boolean isEnable)
显示缩放控件
|
java.lang.String |
getBdid() |
java.lang.String |
getCurrentFloorId()
获取当前楼层Id
|
java.util.List<FloorDataModel> |
getFloorDataModels()
获取楼层列表数据
|
Coordinate |
getMapCenter()
获取当前地图的中心点
|
Coordinate |
getMapCenterPoint()
获取当前view中心点的世界坐标
|
double |
getMapRotate()
获得地图的角度
|
float |
getMapSkewAngle()
获取地图俯仰角度
|
IMapUIController |
getMapUIController()
获取地图控件控制器
|
double |
getMapZoomLevel()
获取缩放级别
|
INavigateManager |
getNavigateManager()
获取导航管理类
|
Feature |
getNavigationRoute(int index)
获取某条导航线的数据
|
int |
getNavigationRouteSize()
获取当前导航线的数量
|
RoadNetManager |
initRoadNet(android.content.Context context,
java.lang.String bdid)
初始化路网信息
|
void |
loadLocalMap(java.lang.String buildingId,
java.lang.String floorId)
加载本地地图
|
void |
loadLocalPlanarGraph(java.lang.String floorId,
boolean initBackground,
boolean floorAutoChange)
获取所有楼层的GeoJson
先获取F00层,后渲染初始化楼层
|
void |
loadMap(java.lang.String buildingId)
加载地图
|
void |
loadMap(java.lang.String buildingId,
java.lang.String floorId,
boolean isLocal)
加载地图
|
void |
localLocalAllPlanarGraph(PlanarGraph f0PlanarGraph)
加载所有楼层数据
|
void |
moveMapToRect(Coordinate leftTop,
Coordinate rightBottom)
移动到某个区域 (地图会自动缩放到合适的大小)
|
void |
moveMapToRect(Coordinate leftTop,
Coordinate rightBottom,
int durationMs)
移动到某个区域 (地图会自动缩放到合适的大小)
|
void |
moveMapToRect(Coordinate leftTop,
Coordinate rightBottom,
int durationMs,
double minZoomLevel,
CameraAnimCallback callback)
移动到某个区域 (地图会自动缩放到合适的大小)
|
void |
onDestroy()
onDestroy
|
void |
onLowMemory()
onLowMemory
|
void |
onPause()
onPause
|
void |
onResume()
onResume
|
void |
refreshMapOverlay()
主动刷新overlay
|
void |
reloadStyle(android.content.Context context,
java.lang.String stylePath,
OnReloadStyleListener onReloadStyleListener)
重新加载style.json name:default
|
void |
reloadStyle(android.content.Context context,
java.lang.String name,
java.lang.String stylePath,
OnReloadStyleListener onReloadStyleListener)
重新加载style.json
|
void |
removeLocationMarker()
删除当前位置mark
|
void |
removeMapGeometryRenderer(int id)
根据id移除所有的几何渲染元素
|
void |
removeMapModelRenderer(int rendererId)
根据id移除模型渲染元素
|
void |
removeMapOverlay(OverlayCell overlayCell)
移除一个overlay
|
void |
removeNavigationRouteById(java.lang.String id)
通过id删除符合的所有导航线(如果多条导航线id一致,将会全部被删除)
|
void |
removeOnMapFloorChangeListener(OnFloorChangeListener onFloorChangeListener)
移除地图楼层改变监听器
|
void |
repeatRenderNaviLine(boolean repeat)
关闭重复渲染导航线
|
void |
requestRoute(double fromX,
double fromY,
java.lang.String fromFloor,
double toX,
double toY,
java.lang.String toFloor)
请求路网数据
|
void |
resetLocation()
重置定位点
|
void |
resetMapAllRendererColor()
重置所有poi的颜色
|
void |
resetMapRendererColor(java.lang.String... featureIds)
根据feature id重置部分poi的颜色
|
Coordinate |
screenCoordinate2WorldCoordinate(float screenX,
float screenY)
屏幕坐标转世界坐标
|
java.util.List<Feature> |
searchMapFeature(java.lang.String key,
java.lang.String val)
根据属性和值搜索当前楼层feature
|
java.util.List<Feature> |
searchMapFeatureByDisplay(java.lang.String val)
根据display搜索当前楼层feature
|
java.util.List<Feature> |
searchMapFeatureByDisplayWithAllFloors(java.lang.String val)
根据display搜索所有楼层feature
|
Feature |
searchMapFeatureById(java.lang.String id)
通过id搜索当前楼层feature
|
java.util.List<Feature> |
searchMapFeatureByIdWithAllFloors(java.lang.String id)
通过id搜索所有楼层feature
|
java.util.List<Feature> |
searchMapFeatureContainsVal(java.lang.String key,
java.lang.String val)
模糊查询 根据属性和值搜索当前楼层feature
|
java.util.List<Feature> |
searchMapFeatureContainsValWithAllFloors(java.lang.String key,
java.lang.String val)
模糊查询 根据属性和值搜索所有楼层feature
|
java.util.List<Feature> |
searchMapFeaturesByWorldCoordinate(Coordinate coordinate)
根据世界坐标搜索feature
|
java.util.List<Feature> |
searchMapFeaturesByWorldCoordinateWithFloorId(Coordinate coordinate,
java.lang.String floorId)
根据floorid世界坐标搜索feature
|
java.util.List<Feature> |
searchMapFeatureWithAllFloors(java.lang.String key,
java.lang.String val)
根据属性和值搜索所有楼层feature
|
Feature |
searchMapRoadNetLineByWorldCoordinate(Coordinate coordinate,
double distance)
查找路网线feature
|
Feature |
searchMapRoadNetPointByWorldCoordinate(Coordinate coordinate,
double distance)
查找路网点feature
|
void |
setAreaTextLayerVisible(boolean visible)
设置文字是否显示
|
void |
setBdid(java.lang.String bdid)
设置本地导航所需bdid
|
void |
setEnableMapMove(boolean isEnable)
是否支持地图平移
|
void |
setEnableMapRotate(boolean isEnable)
是否支持地图旋转
|
void |
setEnableMapScale(boolean isEnable)
是否支持地图缩放
|
void |
setEnableMapSkew(boolean isEnable)
是否支持地图倾斜
|
void |
setFacilityLayerVisible(boolean visible)
显示设施是否显示l
|
void |
setLocalNaviEnable(boolean enable)
设置是否为本地导航
|
void |
setLocation(com.palmap.gl.maps.Palmap.Position mLocation)
设置定位点
|
void |
setLocationMarker(SimpleLocationMarker locationMarker)
设置定位点mark
|
void |
setLocationMarkerImage(android.graphics.Bitmap bitmap)
设置定位Mark图标
|
void |
setLocationMarkerImage(int resId) |
void |
setLocationMarkerLayoutParams(int width,
int height)
设置定位mark 宽 高
|
void |
setMap2dMode()
设置2d模式
|
void |
setMap3dMode(double skewAngle)
设置3d模式
|
void |
setMapBounds(Coordinate leftTop,
Coordinate rightBottom)
设置相机界限
|
void |
setMapCompassImage(android.graphics.Bitmap bitmap)
设置指南针控件图片
|
void |
setMapCompassView(ICompassView compassView)
设置指南针
|
void |
setMapDefaultSkewAngle(float defaultSkewAngle)
设置地图加载时默认的俯仰角度
|
void |
setMapFloorView(IFloorView floorView)
设置楼层切换控件
|
void |
setMapFPSEvent(FPSEvent fpsEvent) |
void |
setMapInitEvent(OnInitEvent onInitEvent)
地图初始化的事件
|
void |
setMapLayerVisibility(java.lang.String layerName,
boolean visibility)
设置图层的可用性
|
void |
setMapLimitRatio(float limitRatio)
设置地图加载时默认的屏占比,默认值0.667
|
void |
setMapLogoPosition(float x,
float y)
设置logo的位置
|
void |
setMapOverlayContainer(android.view.ViewGroup container)
设置overlay的容器
|
void |
setMapRenderEvent(OnRenderEvent onRenderEvent)
地图渲染完成事件
|
void |
setMapScaleView(IScaleView scaleView)
设置比例尺
|
void |
setMapUIController(IMapUIController mapUIController) |
void |
setMapViewGestureOption(MapViewOption option)
设置地图手势option
MapViewOption |
void |
setMapZoomView(IZoomView zoomView)
设置缩放控件
|
void |
setNavigateLayerVisible(boolean visible)
设置导航线是否显示
|
void |
setNavigateZoomLevel(double navigateZoomLevel)
设置导航过程中地图缩放比例
|
void |
setNaviLineRepeatRenderFactor(float factor)
修改导航线渲染随zoomlevel渲染时因数
|
void |
setOnMapDoubleTapListener(OnDoubleTapListener onDoubleTapListener)
设置地图双击事件监听器
|
void |
setOnMapLoadedListener(OnMapLoadedListener mapLoadedListener)
地图加载完成页面
|
void |
setOnMapLongPressListener(OnLongPressListener onLongPressListener)
设置地图长按事件监听器
|
void |
setOnMapMoveListener(OnMapMoveListener onMapMoveListener)
设置地图移动事件监听器
|
void |
setOnMapReadyListener(OnMapReadyListener onMapReadyListener)
设置地图加载完成监听
|
void |
setOnMapRotateChangedListener(OnMapRotateChangedListener onMapRotateChangedListener)
设置地图旋转监听器
|
void |
setOnMapScaleChangedListener(OnMapScaleChangedListener onMapScaleChangedListener)
设置地图缩放监听器
|
void |
setOnMapSingleTapListener(OnSingleTapListener onSingleTapListener)
设置地图单击事件监听器
|
void |
setOnMapSkewChangedListener(OnMapSkewChangedListener onMapSkewChangedListener)
设置地图俯仰监听器
|
void |
setOnPalmapErrorListener(OnPalmapErrorListener onPalmapErrorListener)
设置地图加载异常监听
|
void |
setOnRouteRequestListener(OnRouteRequestListener listener)
设置导航路线请求监听
|
void |
submitMapCircleRenderer(int id,
Coordinate center,
double r,
int color,
float lineWidth)
提交一个空心圆形渲染元素
|
void |
submitMapFillCircleRenderer(int id,
Coordinate center,
double r,
int color,
int fillColor,
float lineWidth)
提交一个实心圆形渲染元素
|
void |
submitMapFillPolygonRenderer(int id,
Coordinate[] coordinates,
int color,
int fillColor,
float lineWidth)
提交一个多边形渲染元素 可画任意实心多边形
|
void |
submitMapPolygonRenderer(int id,
Coordinate[] coordinates,
int color,
float lineWidth)
提交一个多边形渲染元素 可画任意空心多边形
|
void |
submitMapRoadNetRenderer(FeatureCollection featureCollection,
int color,
float pointSize)
添加路网渲染元素
|
void |
submitMapSymbolRenderRule(SymbolRenderRule rule)
提交Symbol渲染规则
|
void |
submitMapSymbolRenderRule(SymbolRenderRuleII rule)
提交Symbol渲染规则
|
void |
switchFloor(java.lang.String floorId)
切换楼层
|
void |
updateLocation(java.lang.String floorId,
boolean autoChangeFloor,
double x,
double y)
更新定位坐标
|
void |
updateMapModelRendererOption(int rendererId,
ModelRenderOption option)
更新某个模型渲染元素的模型矩阵
|
void |
updateMapRendererColor(java.util.HashMap<java.lang.String,java.lang.Integer> value)
批量修改poi的颜色
|
void |
updateMapRendererColor(int color,
java.lang.String... featureIds)
批量修改poi的颜色(同一个颜色)
|
void |
updateMapRendererColor(java.lang.String featureId,
int color)
当一修改poi的颜色
|
void |
updateMapRenderersTextsize(java.lang.String layerName,
int textsize) |
void |
updateMapRendererText(java.lang.String layerName,
java.util.Map<java.lang.String,java.lang.String> idTextMap)
更新poi文字
|
void |
updateMapRendererText(java.lang.String layerName,
java.lang.String featureId,
java.lang.String text)
更新poi的文字
|
void |
updateMapRoadNetRendererColor(java.lang.String key,
java.lang.Object value,
int color)
更新路网渲染元素的颜色
|
void |
updatemAzimuth(float azimuth)
更新设备方位角
|
Coordinate |
worldCoordinate2ScreenCoordinate(Coordinate coordinate)
世界坐标转屏幕坐标
|
void |
zoomInLevel()
放大一个级别
|
void |
zoomOutLevel()
缩小一个级别
|
checkLayoutParams, generateDefaultLayoutParams, generateLayoutParams, generateLayoutParams, getAccessibilityClassName, getConsiderGoneChildrenWhenMeasuring, getMeasureAllChildren, onLayout, onMeasure, setForegroundGravity, setMeasureAllChildren, shouldDelayChildPressedStateaddChildrenForAccessibility, addFocusables, addKeyboardNavigationClusters, addStatesFromChildren, addTouchables, addView, addView, addView, addView, addView, addViewInLayout, addViewInLayout, attachLayoutAnimationParameters, attachViewToParent, bringChildToFront, canAnimate, childDrawableStateChanged, childHasTransientStateChanged, cleanupLayoutState, clearChildFocus, clearDisappearingChildren, clearFocus, debug, detachAllViewsFromParent, detachViewFromParent, detachViewFromParent, detachViewsFromParent, dispatchApplyWindowInsets, dispatchCapturedPointerEvent, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchDraw, dispatchDrawableHotspotChanged, dispatchFinishTemporaryDetach, dispatchFreezeSelfOnly, dispatchGenericFocusedEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPointerCaptureChanged, dispatchProvideAutofillStructure, dispatchProvideStructure, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchStartTemporaryDetach, dispatchSystemUiVisibilityChanged, dispatchThawSelfOnly, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, drawChild, endViewTransition, findFocus, findViewsWithText, focusableViewAvailable, focusSearch, gatherTransparentRegion, getChildAt, getChildCount, getChildDrawingOrder, getChildDrawingOrder, getChildMeasureSpec, getChildStaticTransformation, getChildVisibleRect, getClipChildren, getClipToPadding, getDescendantFocusability, getFocusedChild, getLayoutAnimation, getLayoutAnimationListener, getLayoutMode, getLayoutTransition, getNestedScrollAxes, getOverlay, getPersistentDrawingCache, getTouchscreenBlocksFocus, hasFocus, hasTransientState, indexOfChild, invalidateChild, invalidateChildInParent, isAlwaysDrawnWithCacheEnabled, isAnimationCacheEnabled, isChildrenDrawingOrderEnabled, isChildrenDrawnWithCacheEnabled, isLayoutSuppressed, isMotionEventSplittingEnabled, isTransitionGroup, jumpDrawablesToCurrentState, layout, measureChild, measureChildren, measureChildWithMargins, notifySubtreeAccessibilityStateChanged, offsetDescendantRectToMyCoords, offsetRectIntoDescendantCoords, onAttachedToWindow, onCreateDrawableState, onDescendantInvalidated, onDetachedFromWindow, onInterceptHoverEvent, onInterceptTouchEvent, onNestedFling, onNestedPreFling, onNestedPrePerformAccessibilityAction, onNestedPreScroll, onNestedScroll, onNestedScrollAccepted, onRequestFocusInDescendants, onRequestSendAccessibilityEvent, onResolvePointerIcon, onStartNestedScroll, onStopNestedScroll, onViewAdded, onViewRemoved, recomputeViewAttributes, removeAllViews, removeAllViewsInLayout, removeDetachedView, removeView, removeViewAt, removeViewInLayout, removeViews, removeViewsInLayout, requestChildFocus, requestChildRectangleOnScreen, requestDisallowInterceptTouchEvent, requestFocus, requestSendAccessibilityEvent, requestTransparentRegion, restoreDefaultFocus, scheduleLayoutAnimation, setAddStatesFromChildren, setAlwaysDrawnWithCacheEnabled, setAnimationCacheEnabled, setChildrenDrawingCacheEnabled, setChildrenDrawingOrderEnabled, setChildrenDrawnWithCacheEnabled, setClipChildren, setClipToPadding, setDescendantFocusability, setLayoutAnimation, setLayoutAnimationListener, setLayoutMode, setLayoutTransition, setMotionEventSplittingEnabled, setOnHierarchyChangeListener, setPersistentDrawingCache, setStaticTransformationsEnabled, setTouchscreenBlocksFocus, setTransitionGroup, showContextMenuForChild, showContextMenuForChild, startActionModeForChild, startActionModeForChild, startLayoutAnimation, startViewTransition, suppressLayout, updateViewLayoutaddExtraDataToAccessibilityNodeInfo, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addOnUnhandledKeyEventListener, animate, announceForAccessibility, autofill, autofill, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelDragAndDrop, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeSystemWindowInsets, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchGenericMotionEvent, dispatchNestedFling, dispatchNestedPreFling, dispatchNestedPrePerformAccessibilityAction, dispatchNestedPreScroll, dispatchNestedScroll, dispatchPopulateAccessibilityEvent, draw, drawableHotspotChanged, findViewById, findViewWithTag, fitSystemWindows, focusSearch, forceHasOverlappingRendering, forceLayout, generateViewId, getAccessibilityDelegate, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAccessibilityPaneTitle, getAccessibilityTraversalAfter, getAccessibilityTraversalBefore, getAlpha, getAnimation, getAnimationMatrix, getApplicationWindowToken, getAttributeResolutionStack, getAttributeSourceResourceMap, getAutofillHints, getAutofillId, getAutofillType, getAutofillValue, getBackground, getBackgroundTintBlendMode, getBackgroundTintList, getBackgroundTintMode, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getClipBounds, getClipToOutline, getContentCaptureSession, getContentDescription, getContext, getContextMenuInfo, getDefaultFocusHighlightEnabled, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getElevation, getExplicitStyle, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusable, getFocusables, getFocusedRect, getForeground, getForegroundGravity, getForegroundTintBlendMode, getForegroundTintList, getForegroundTintMode, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHasOverlappingRendering, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getHorizontalScrollbarThumbDrawable, getHorizontalScrollbarTrackDrawable, getId, getImportantForAccessibility, getImportantForAutofill, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInSurface, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextClusterForwardId, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOutlineAmbientShadowColor, getOutlineProvider, getOutlineSpotShadowColor, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getPointerIcon, getResources, getRevealOnFocusHint, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRootWindowInsets, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollIndicators, getScrollX, getScrollY, getSolidColor, getSourceLayoutResId, getStateListAnimator, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemGestureExclusionRects, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTooltipText, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTransitionAlpha, getTransitionName, getTranslationX, getTranslationY, getTranslationZ, getUniqueDrawingId, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarThumbDrawable, getVerticalScrollbarTrackDrawable, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, getZ, hasExplicitFocusable, hasFocusable, hasNestedScrollingParent, hasOnClickListeners, hasOverlappingRendering, hasPointerCapture, hasWindowFocus, inflate, invalidate, invalidate, invalidate, invalidateDrawable, invalidateOutline, isAccessibilityFocused, isAccessibilityHeading, isActivated, isAttachedToWindow, isClickable, isContextClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isFocusedByDefault, isForceDarkAllowed, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isImportantForAccessibility, isImportantForAutofill, isInEditMode, isInLayout, isInTouchMode, isKeyboardNavigationCluster, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isNestedScrollingEnabled, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPivotSet, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScreenReaderFocusable, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTemporarilyDetached, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, isVisibleToUserForAutofill, keyboardNavigationClusterSearch, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onApplyWindowInsets, onCancelPendingInputEvents, onCapturedPointerEvent, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawForeground, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onOverScrolled, onPointerCaptureChange, onPopulateAccessibilityEvent, onProvideAutofillStructure, onProvideAutofillVirtualStructure, onProvideStructure, onProvideVirtualStructure, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTouchEvent, onTrackballEvent, onVisibilityAggregated, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, onWindowVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performContextClick, performContextClick, performHapticFeedback, performHapticFeedback, performLongClick, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, releasePointerCapture, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, removeOnUnhandledKeyEventListener, requestApplyInsets, requestFitSystemWindows, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestPointerCapture, requestRectangleOnScreen, requestRectangleOnScreen, requestUnbufferedDispatch, requireViewById, resetPivot, resolveSize, resolveSizeAndState, restoreHierarchyState, saveAttributeDataForStyleable, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityHeading, setAccessibilityLiveRegion, setAccessibilityPaneTitle, setAccessibilityTraversalAfter, setAccessibilityTraversalBefore, setActivated, setAlpha, setAnimation, setAnimationMatrix, setAutofillHints, setAutofillId, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBackgroundTintBlendMode, setBackgroundTintList, setBackgroundTintMode, setBottom, setCameraDistance, setClickable, setClipBounds, setClipToOutline, setContentCaptureSession, setContentDescription, setContextClickable, setDefaultFocusHighlightEnabled, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setElevation, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusable, setFocusableInTouchMode, setFocusedByDefault, setForceDarkAllowed, setForeground, setForegroundTintBlendMode, setForegroundTintList, setForegroundTintMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHorizontalScrollbarThumbDrawable, setHorizontalScrollbarTrackDrawable, setHovered, setId, setImportantForAccessibility, setImportantForAutofill, setKeepScreenOn, setKeyboardNavigationCluster, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLeftTopRightBottom, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNestedScrollingEnabled, setNextClusterForwardId, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnApplyWindowInsetsListener, setOnCapturedPointerListener, setOnClickListener, setOnContextClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnScrollChangeListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOutlineAmbientShadowColor, setOutlineProvider, setOutlineSpotShadowColor, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPointerIcon, setPressed, setRevealOnFocusHint, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScreenReaderFocusable, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollIndicators, setScrollIndicators, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setStateListAnimator, setSystemGestureExclusionRects, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTooltipText, setTop, setTouchDelegate, setTransitionAlpha, setTransitionName, setTransitionVisibility, setTranslationX, setTranslationY, setTranslationZ, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setVerticalScrollbarThumbDrawable, setVerticalScrollbarTrackDrawable, setVisibility, setWillNotCacheDrawing, setWillNotDraw, setX, setY, setZ, showContextMenu, showContextMenu, startActionMode, startActionMode, startAnimation, startDrag, startDragAndDrop, startNestedScroll, stopNestedScroll, toString, transformMatrixToGlobal, transformMatrixToLocal, unscheduleDrawable, unscheduleDrawable, updateDragShadow, verifyDrawable, willNotCacheDrawing, willNotDrawclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, createContextMenu, getLayoutDirection, getParent, getParentForAccessibility, getTextAlignment, getTextDirection, isLayoutDirectionResolved, isLayoutRequested, isTextAlignmentResolved, isTextDirectionResolved, keyboardNavigationClusterSearch, requestFitSystemWindows, requestLayoutpublic Palmap(@NonNull
android.content.Context context)
public Palmap(@NonNull
android.content.Context context,
@Nullable
android.util.AttributeSet attrs)
public Palmap(@NonNull
java.lang.String name,
@NonNull
android.content.Context context)
public Palmap(@NonNull
java.lang.String name,
@NonNull
android.content.Context context,
@Nullable
android.util.AttributeSet attrs)
public void onResume()
public void onPause()
public void onLowMemory()
public void onDestroy()
public void clearCache()
public void enableMapZoomView(boolean isEnable)
isEnable - public void enableMapCompass(boolean isEnable)
isEnable - public void enableMapScaleView(boolean isEnable)
isEnable - public void enableMapFloorView(boolean isEnable)
isEnable - public void setMapCompassView(ICompassView compassView)
compassView - public void setMapScaleView(IScaleView scaleView)
scaleView - public void setMapZoomView(IZoomView zoomView)
zoomView - public void setMapFloorView(IFloorView floorView)
floorView - public void setMapCompassImage(android.graphics.Bitmap bitmap)
bitmap - public IMapUIController getMapUIController()
public java.lang.String getCurrentFloorId()
public void enableF0PlanarGraph()
public void disableF0PlanarGraph()
public java.util.List<FloorDataModel> getFloorDataModels()
public void loadMap(java.lang.String buildingId)
buildingId - 建筑Idpublic void reloadStyle(android.content.Context context,
java.lang.String stylePath,
OnReloadStyleListener onReloadStyleListener)
context - stylePath - onReloadStyleListener - public void reloadStyle(android.content.Context context,
java.lang.String name,
java.lang.String stylePath,
OnReloadStyleListener onReloadStyleListener)
context - name - stylePath - onReloadStyleListener - public void loadMap(java.lang.String buildingId,
java.lang.String floorId,
boolean isLocal)
buildingId - 建筑IdfloorId - 楼层Idpublic void loadLocalMap(java.lang.String buildingId,
java.lang.String floorId)
buildingId - 建筑IdfloorId - 楼层Idpublic void localLocalAllPlanarGraph(PlanarGraph f0PlanarGraph)
public void loadLocalPlanarGraph(java.lang.String floorId,
boolean initBackground,
boolean floorAutoChange)
floorId - initBackground - floorAutoChange - public void switchFloor(java.lang.String floorId)
floorId - public void resetLocation()
public void setLocation(com.palmap.gl.maps.Palmap.Position mLocation)
mLocation - public void updateLocation(java.lang.String floorId,
boolean autoChangeFloor,
double x,
double y)
floorId - 楼层Idx - 定位点X坐标y - 定位点Y坐标public void updatemAzimuth(float azimuth)
azimuth - 方位角public void enableLocationMarker(boolean enable)
enable - true:设置为可用 false:设置为不可用public void setLocationMarkerImage(int resId)
public void setLocationMarkerLayoutParams(int width,
int height)
width - height - public void setLocationMarkerImage(android.graphics.Bitmap bitmap)
bitmap - 定位点图标public void setLocationMarker(SimpleLocationMarker locationMarker)
locationMarker - public void setNavigateZoomLevel(double navigateZoomLevel)
navigateZoomLevel - 地图缩放比例public void enableDynamicNavigate(boolean enable)
enable - 是否使用public void setOnRouteRequestListener(OnRouteRequestListener listener)
listener - 导航路线请求监听public void setOnMapReadyListener(OnMapReadyListener onMapReadyListener)
onMapReadyListener - public void setOnPalmapErrorListener(OnPalmapErrorListener onPalmapErrorListener)
onPalmapErrorListener - public void requestRoute(double fromX,
double fromY,
java.lang.String fromFloor,
double toX,
double toY,
java.lang.String toFloor)
fromX - 起点X坐标fromY - 起点Y坐标fromFloor - 起点楼层IdtoX - 终点X坐标toY - 终点Y坐标toFloor - 终点楼层Idpublic void setAreaTextLayerVisible(boolean visible)
visible - public void setFacilityLayerVisible(boolean visible)
visible - public void setNavigateLayerVisible(boolean visible)
visible - public void clearNavigateRoute()
public void setLocalNaviEnable(boolean enable)
public void setBdid(java.lang.String bdid)
public java.lang.String getBdid()
public INavigateManager getNavigateManager()
public void removeLocationMarker()
public void setNaviLineRepeatRenderFactor(float factor)
public void repeatRenderNaviLine(boolean repeat)
public void setMapViewGestureOption(@NonNull
MapViewOption option)
MapViewOptionoption - public void setEnableMapMove(boolean isEnable)
isEnable - public void setEnableMapRotate(boolean isEnable)
isEnable - public void setEnableMapScale(boolean isEnable)
isEnable - public void setEnableMapSkew(boolean isEnable)
isEnable - public Feature searchMapFeatureById(@NonNull java.lang.String id)
id - public java.util.List<Feature> searchMapFeatureByIdWithAllFloors(@NonNull java.lang.String id)
id - public java.util.List<Feature> searchMapFeature(@NonNull java.lang.String key, @NonNull java.lang.String val)
key - val - public java.util.List<Feature> searchMapFeatureWithAllFloors(@NonNull java.lang.String key, @NonNull java.lang.String val)
key - val - public java.util.List<Feature> searchMapFeatureContainsVal(@NonNull java.lang.String key, @NonNull java.lang.String val)
key - val - public java.util.List<Feature> searchMapFeatureContainsValWithAllFloors(@NonNull java.lang.String key, @NonNull java.lang.String val)
key - val - public java.util.List<Feature> searchMapFeatureByDisplay(@NonNull java.lang.String val)
val - public java.util.List<Feature> searchMapFeatureByDisplayWithAllFloors(@NonNull java.lang.String val)
val - public java.util.List<Feature> searchMapFeaturesByWorldCoordinate(Coordinate coordinate)
coordinate - public java.util.List<Feature> searchMapFeaturesByWorldCoordinateWithFloorId(Coordinate coordinate, java.lang.String floorId)
coordinate - public double getMapRotate()
public float getMapSkewAngle()
public Coordinate getMapCenter()
public Coordinate getMapCenterPoint()
public double getMapZoomLevel()
public boolean checkMapInitCompleted()
public void setMapInitEvent(OnInitEvent onInitEvent)
onInitEvent - public void setOnMapLoadedListener(OnMapLoadedListener mapLoadedListener)
public void setMapRenderEvent(OnRenderEvent onRenderEvent)
onRenderEvent - public void setMapDefaultSkewAngle(float defaultSkewAngle)
defaultSkewAngle - public void setMapBounds(Coordinate leftTop, Coordinate rightBottom)
leftTop - rightBottom - public void setMapLayerVisibility(@NonNull
java.lang.String layerName,
@NonNull
boolean visibility)
layerName - visibility - public void setMapLimitRatio(float limitRatio)
limitRatio - 该参数必须为非负数public Coordinate screenCoordinate2WorldCoordinate(float screenX, float screenY)
screenX - screenY - public Coordinate worldCoordinate2ScreenCoordinate(Coordinate coordinate)
coordinate - public int getNavigationRouteSize()
public Feature getNavigationRoute(int index)
index - public void addNavigationRoute(FeatureCollection featureCollection)
featureCollection - feature的id可用于删除这些条导航线public void addNavigationRoute(FeatureCollection featureCollection, java.lang.String styleName)
featureCollection - styleName - public void removeNavigationRouteById(java.lang.String id)
id - public void zoomInLevel()
public void zoomOutLevel()
public void moveMapToRect(Coordinate leftTop, Coordinate rightBottom)
leftTop - 左上角rightBottom - 右下角public void moveMapToRect(Coordinate leftTop, Coordinate rightBottom, int durationMs)
leftTop - 左上角rightBottom - 右下角durationMs - 动画时长public void moveMapToRect(Coordinate leftTop, Coordinate rightBottom, int durationMs, double minZoomLevel, CameraAnimCallback callback)
leftTop - 左上角rightBottom - 右下角durationMs - 动画时长minZoomLevel - 最小的缩放级别public final void animateCameraFrame(CameraUpdate update)
update - public final void animateCameraFrame(CameraUpdate update, CameraAnimCallback callback)
public final void animateCameraFrame(CameraUpdate update, int durationMs, CameraAnimCallback callback)
public void setMapFPSEvent(FPSEvent fpsEvent)
public void setOnMapDoubleTapListener(OnDoubleTapListener onDoubleTapListener)
onDoubleTapListener - public void setOnMapLongPressListener(OnLongPressListener onLongPressListener)
onLongPressListener - public void setOnMapScaleChangedListener(OnMapScaleChangedListener onMapScaleChangedListener)
onMapScaleChangedListener - public void setOnMapRotateChangedListener(OnMapRotateChangedListener onMapRotateChangedListener)
onMapRotateChangedListener - public void setOnMapSkewChangedListener(OnMapSkewChangedListener onMapSkewChangedListener)
onMapSkewChangedListener - public void addOnMapFloorChangeListener(OnFloorChangeListener onFloorChangeListener)
onFloorChangeListener - public void removeOnMapFloorChangeListener(OnFloorChangeListener onFloorChangeListener)
onFloorChangeListener - public void setOnMapSingleTapListener(OnSingleTapListener onSingleTapListener)
onSingleTapListener - public void setOnMapMoveListener(OnMapMoveListener onMapMoveListener)
onMapMoveListener - public void setMapOverlayContainer(android.view.ViewGroup container)
public <T extends OverlayCell> T addMapOverlay(T overlayCell)
overlayCell - 覆盖物,可参考SimpleImageMarker
SimpleTextMarkerpublic void setMapLogoPosition(float x,
float y)
x - 屏幕坐标xy - 屏幕坐标ypublic void clearMapOverlay()
public void removeMapOverlay(OverlayCell overlayCell)
overlayCell - 覆盖物,可参考SimpleImageMarker
SimpleTextMarkerpublic void refreshMapOverlay()
public void drawMapPlanarGraph(PlanarGraph planarGraph)
planarGraph - 地图数据public void drawMapPlanarGraph(PlanarGraph planarGraph, PlanarGraph f0PlanarGraph)
planarGraph - 地图数据public void drawMapPlanarGraph(PlanarGraph planarGraph, PlanarGraph f0PlanarGraph, boolean resetCamera)
planarGraph - 地图数据resetCamera - 是否把相机重置public void changeMapBackgroundColor(int color)
color - 颜色值public void changeMapBackgroundImage(@DrawableRes
int res)
res - 图片资源idpublic void enableMapBackgroundImage()
public void disableMapBackgroundImage()
public void disableMapLogo()
public void enableMapLogo()
public void submitMapPolygonRenderer(int id,
Coordinate[] coordinates,
int color,
float lineWidth)
id - 渲染元素的id 可以依据这个id删除它coordinates - 首尾封闭的点序列color - 颜色lineWidth - 线宽public void submitMapCircleRenderer(int id,
Coordinate center,
double r,
int color,
float lineWidth)
id - center - 圆心坐标 (世界坐标)r - 半径 (米)color - 颜色lineWidth - 线宽(像素)public void submitMapFillPolygonRenderer(int id,
Coordinate[] coordinates,
int color,
int fillColor,
float lineWidth)
id - 渲染元素的id 可以依据这个id删除它coordinates - 首尾封闭的点序列color - 颜色fillColor - 填充颜色lineWidth - 线宽public void submitMapFillCircleRenderer(int id,
Coordinate center,
double r,
int color,
int fillColor,
float lineWidth)
id - center - 圆心坐标 (世界坐标)r - 半径 (米)color - 颜色fillColor - 填充颜色lineWidth - 线宽(像素)public void clearMapGeometryRenderer()
public void removeMapGeometryRenderer(int id)
id - public void setMap2dMode()
public void setMap3dMode(double skewAngle)
skewAngle - 俯仰角public void updateMapRendererColor(@NonNull
java.lang.String featureId,
int color)
featureId - color - public void updateMapRendererColor(int color,
@NonNull
java.lang.String... featureIds)
color - featureIds - public void updateMapRendererColor(java.util.HashMap<java.lang.String,java.lang.Integer> value)
value - key: poiId val : 颜色public void resetMapRendererColor(@NonNull
java.lang.String... featureIds)
featureIds - public void resetMapAllRendererColor()
public void updateMapRenderersTextsize(java.lang.String layerName,
int textsize)
public void updateMapRendererText(java.lang.String layerName,
java.lang.String featureId,
java.lang.String text)
layerName - featureId - public void updateMapRendererText(java.lang.String layerName,
java.util.Map<java.lang.String,java.lang.String> idTextMap)
layerName - idTextMap - key: featureId value: textpublic void submitMapSymbolRenderRule(SymbolRenderRule rule)
rule--Visibility - public void submitMapSymbolRenderRule(SymbolRenderRuleII rule)
rule--isAlwaysRender - public void setMapUIController(IMapUIController mapUIController)
public RoadNetManager initRoadNet(android.content.Context context, java.lang.String bdid)
public Feature searchMapRoadNetPointByWorldCoordinate(Coordinate coordinate, double distance)
coordinate - public Feature searchMapRoadNetLineByWorldCoordinate(Coordinate coordinate, double distance)
coordinate - public void submitMapRoadNetRenderer(FeatureCollection featureCollection, int color, float pointSize)
featureCollection - public void updateMapRoadNetRendererColor(java.lang.String key,
java.lang.Object value,
int color)
key - 使用哪个key进行比对value - 对应的值color - 颜色值public void clearMapRoadNetRenderer()
public void addMapModelRenderer(int id,
IModelLoader.FileType fileType,
java.lang.String filePath,
java.lang.String fileName,
boolean merger,
ModelRenderOption option)
id - 模型分组idfileType - 文件类型 asstes或者sdCardfilePath - 文件路径fileName - 文件名merger - 是否合并三角网渲染option - 模型渲染参数public void updateMapModelRendererOption(int rendererId,
ModelRenderOption option)
rendererId - option - public void removeMapModelRenderer(int rendererId)
rendererId - public void clearMapModelRenderer()