public class GLMapSurfaceView
extends android.opengl.GLSurfaceView
| Modifier and Type | Class and Description |
|---|---|
static class |
GLMapSurfaceView.MapColor |
static class |
GLMapSurfaceView.RenderMode |
static class |
GLMapSurfaceView.RouteRenderStyle |
static class |
GLMapSurfaceView.TouchEvent |
android.opengl.GLSurfaceView.EGLConfigChooser, android.opengl.GLSurfaceView.EGLContextFactory, android.opengl.GLSurfaceView.EGLWindowSurfaceFactory, android.opengl.GLSurfaceView.GLWrapper, android.opengl.GLSurfaceView.Rendererandroid.view.View.AccessibilityDelegate, android.view.View.BaseSavedState, android.view.View.DragShadowBuilder, android.view.View.MeasureSpec, android.view.View.OnAttachStateChangeListener, android.view.View.OnClickListener, 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.OnSystemUiVisibilityChangeListener, android.view.View.OnTouchListenerDEBUG_CHECK_GL_ERROR, DEBUG_LOG_GL_CALLS, RENDERMODE_CONTINUOUSLY, RENDERMODE_WHEN_DIRTYACCESSIBILITY_LIVE_REGION_ASSERTIVE, ACCESSIBILITY_LIVE_REGION_NONE, ACCESSIBILITY_LIVE_REGION_POLITE, ALPHA, 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, 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, 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, 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, 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_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_INHERIT, TEXT_DIRECTION_LOCALE, TEXT_DIRECTION_LTR, TEXT_DIRECTION_RTL, TRANSLATION_X, TRANSLATION_Y, VIEW_LOG_TAG, VISIBLE, WINDOW_FOCUSED_STATE_SET, X, Y| Constructor and Description |
|---|
GLMapSurfaceView(android.content.Context context) |
GLMapSurfaceView(android.content.Context context,
android.util.AttributeSet attrs) |
| Modifier and Type | Method and Description |
|---|---|
void |
activatePopup(Popup popup) |
protected long |
addAnnotation(Annotation annotation) |
protected void |
addAnnotation(Annotation annotation,
boolean refresh) |
OverlayId |
addOverlay(Overlay overlay) |
void |
calculateRegion(double northLat,
double westLon,
double southLat,
double eastLon,
float[] zoomLevel,
double[] lookAtLatitude,
double[] lookAtLongitude) |
float |
calculateZoom(ArrayList<Annotation> annotations,
Annotation centerAnno) |
void |
clearRoute() |
void |
disableAllAnnotationLayers() |
void |
disableAnnotationLayer(Annotation.AnnotationLayer layer) |
void |
disableAnnotationLayers(ArrayList<Annotation.AnnotationLayer> layers) |
void |
disableTouch(boolean touchDisabled) |
void |
enableAnnotationLayer(Annotation.AnnotationLayer layer) |
void |
enableAnnotationLayers(ArrayList<Annotation.AnnotationLayer> layers) |
void |
followVehicle(boolean follow) |
ArrayList<Annotation> |
getAnnotations() |
byte[] |
getBitmapSnapshot(int x,
int y,
int width,
int height) |
double |
getCameraDeclination() |
protected android.location.Location |
getCameraLocation() |
boolean |
getEngineBooleanFlag(int key) |
protected int |
getGLRenderMode() |
long |
getHighlightAnnotationId() |
protected android.location.Location |
getLatLon(int x,
int y) |
GLMapSurfaceView.MapColor |
getMapColor() |
MapViewEventListener |
getMapListener() |
long |
getModelVehicleAnnotationId() |
MapView.TouchMode |
getMultiTouchMode() |
long |
getSpriteVehicleAnnotationId() |
protected float |
getZoomLevel() |
boolean |
hideAnnotation(Annotation annotation) |
void |
hideTurnArrow(int selectSegmentIndex) |
void |
init(int blankLayerViewId) |
void |
init(int blankLayerViewId,
android.location.Location firstLocation,
android.location.Location secondLocation,
android.graphics.Rect rect,
MapViewEventListener mapListener) |
void |
init(int blankLayerViewId,
android.location.Location lastKnownLocation,
MapViewEventListener mapListener) |
void |
init(int blankLayerViewId,
MapViewEventListener mapListener) |
boolean |
isOnRoad(android.location.Location location,
int[] threshold,
boolean ignoreHeading) |
boolean |
isTouchDisabled() |
boolean |
isTurnRouteBoundValid() |
void |
loadConfiguration(String configFile) |
void |
loadConfigurationForTvOut(String configFile) |
void |
loadConfigurations(ArrayList<String> configFiles) |
void |
moveTo(android.location.Location latLon) |
static void |
onDestroy() |
protected void |
onDetachedFromWindow() |
void |
onPause() |
void |
onResume() |
boolean |
onTouchEvent(android.view.MotionEvent e) |
void |
refreshMapData() |
void |
removeAllAnnotation() |
void |
removeAnnotation(Annotation annotation) |
void |
removeAnnotation(long id) |
void |
removeOverlay(OverlayId overlay) |
void |
removePopup() |
void |
setAdi(android.location.Location location,
GLMapSurfaceView.RenderMode renderMode,
float zoomLevel,
android.graphics.Rect regionBound) |
void |
setCameraDeclination(int zoomLevel,
double declination,
boolean needAnimation) |
void |
setDisplaySpeedTraps(boolean enable) |
void |
setDisplayTraffic(boolean enable) |
void |
setDisplayTrafficCameras(boolean enable) |
void |
setDisplayTrafficIncidents(boolean enable) |
void |
setDisplayVehicle(boolean enable) |
void |
setEngineBooleanFlag(int key,
boolean value) |
void |
setHighlightAnnotation(int id,
boolean needMove) |
void |
setLocation(android.location.Location location) |
void |
setMapColor(GLMapSurfaceView.MapColor mapColor) |
void |
setMapListener(MapViewEventListener mapListener) |
void |
setMultiTouchMode(MapView.TouchMode mode) |
void |
setRasterMode(int type) |
protected void |
setRenderMode(GLMapSurfaceView.RenderMode renderMode) |
static void |
setServerUrl(String vectorTileUrl1,
String vectorTileUrlParams1,
String trafficTileUrl1,
String trafficTileUrlParams1) |
void |
setShowSky(boolean isShowSky) |
void |
setTurnRouteZoomLevel(int width,
int height) |
long |
setVehicle2D(Annotation annotation) |
long |
setVehicle3D(byte[] model) |
long |
setVehicle3D(String model) |
void |
setVehicleLocation(android.location.Location l,
boolean needBlueCircle,
boolean needMove) |
void |
setViewConfigPrefix(String configPrefix) |
void |
setVisibility(int visibility) |
void |
setZoomLevel(float zoomLevel,
boolean needTransition) |
boolean |
showAnnotation(Annotation annotation) |
void |
showCopyRight(int x,
int y,
int pixelWidth,
int pixelHeight) |
void |
showRegion(double northLat,
double westLon,
double southLat,
double eastLon) |
void |
showRegion(double northLat,
double westLon,
double southLat,
double eastLon,
android.graphics.Rect rect) |
void |
showTurnArrow(int selectSegmentIndex) |
void |
showTurnRouteSummary() |
Annotation.AnnotationLayer |
unusedAnnotationLayer() |
finalize, getDebugFlags, getPreserveEGLContextOnPause, getRenderMode, onAttachedToWindow, queueEvent, requestRender, setDebugFlags, setEGLConfigChooser, setEGLConfigChooser, setEGLConfigChooser, setEGLContextClientVersion, setEGLContextFactory, setEGLWindowSurfaceFactory, setGLWrapper, setPreserveEGLContextOnPause, setRenderer, setRenderMode, surfaceChanged, surfaceCreated, surfaceDestroyeddispatchDraw, draw, gatherTransparentRegion, getHolder, onMeasure, onWindowVisibilityChanged, setSecure, setZOrderMediaOverlay, setZOrderOnTopaddChildrenForAccessibility, addFocusables, addFocusables, addOnAttachStateChangeListener, addOnLayoutChangeListener, addTouchables, animate, announceForAccessibility, awakenScrollBars, awakenScrollBars, awakenScrollBars, bringToFront, buildDrawingCache, buildDrawingCache, buildLayer, callOnClick, cancelLongPress, cancelPendingInputEvents, canResolveLayoutDirection, canResolveTextAlignment, canResolveTextDirection, canScrollHorizontally, canScrollVertically, checkInputConnectionProxy, clearAnimation, clearFocus, combineMeasuredStates, computeHorizontalScrollExtent, computeHorizontalScrollOffset, computeHorizontalScrollRange, computeScroll, computeVerticalScrollExtent, computeVerticalScrollOffset, computeVerticalScrollRange, createAccessibilityNodeInfo, createContextMenu, destroyDrawingCache, dispatchConfigurationChanged, dispatchDisplayHint, dispatchDragEvent, dispatchGenericFocusedEvent, dispatchGenericMotionEvent, dispatchGenericPointerEvent, dispatchHoverEvent, dispatchKeyEvent, dispatchKeyEventPreIme, dispatchKeyShortcutEvent, dispatchPopulateAccessibilityEvent, dispatchRestoreInstanceState, dispatchSaveInstanceState, dispatchSetActivated, dispatchSetPressed, dispatchSetSelected, dispatchSystemUiVisibilityChanged, dispatchTouchEvent, dispatchTrackballEvent, dispatchUnhandledMove, dispatchVisibilityChanged, dispatchWindowFocusChanged, dispatchWindowSystemUiVisiblityChanged, dispatchWindowVisibilityChanged, drawableStateChanged, findFocus, findViewById, findViewsWithText, findViewWithTag, fitSystemWindows, focusSearch, forceLayout, generateViewId, getAccessibilityLiveRegion, getAccessibilityNodeProvider, getAlpha, getAnimation, getApplicationWindowToken, getBackground, getBaseline, getBottom, getBottomFadingEdgeStrength, getBottomPaddingOffset, getCameraDistance, getClipBounds, getContentDescription, getContext, getContextMenuInfo, getDefaultSize, getDisplay, getDrawableState, getDrawingCache, getDrawingCache, getDrawingCacheBackgroundColor, getDrawingCacheQuality, getDrawingRect, getDrawingTime, getFilterTouchesWhenObscured, getFitsSystemWindows, getFocusables, getFocusedRect, getGlobalVisibleRect, getGlobalVisibleRect, getHandler, getHeight, getHitRect, getHorizontalFadingEdgeLength, getHorizontalScrollbarHeight, getId, getImportantForAccessibility, getKeepScreenOn, getKeyDispatcherState, getLabelFor, getLayerType, getLayoutDirection, getLayoutParams, getLeft, getLeftFadingEdgeStrength, getLeftPaddingOffset, getLocalVisibleRect, getLocationInWindow, getLocationOnScreen, getMatrix, getMeasuredHeight, getMeasuredHeightAndState, getMeasuredState, getMeasuredWidth, getMeasuredWidthAndState, getMinimumHeight, getMinimumWidth, getNextFocusDownId, getNextFocusForwardId, getNextFocusLeftId, getNextFocusRightId, getNextFocusUpId, getOnFocusChangeListener, getOverlay, getOverScrollMode, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getParent, getParentForAccessibility, getPivotX, getPivotY, getResources, getRight, getRightFadingEdgeStrength, getRightPaddingOffset, getRootView, getRotation, getRotationX, getRotationY, getScaleX, getScaleY, getScrollBarDefaultDelayBeforeFade, getScrollBarFadeDuration, getScrollBarSize, getScrollBarStyle, getScrollX, getScrollY, getSolidColor, getSuggestedMinimumHeight, getSuggestedMinimumWidth, getSystemUiVisibility, getTag, getTag, getTextAlignment, getTextDirection, getTop, getTopFadingEdgeStrength, getTopPaddingOffset, getTouchables, getTouchDelegate, getTranslationX, getTranslationY, getVerticalFadingEdgeLength, getVerticalScrollbarPosition, getVerticalScrollbarWidth, getViewTreeObserver, getVisibility, getWidth, getWindowAttachCount, getWindowId, getWindowSystemUiVisibility, getWindowToken, getWindowVisibility, getWindowVisibleDisplayFrame, getX, getY, hasFocus, hasFocusable, hasOnClickListeners, hasOverlappingRendering, hasTransientState, hasWindowFocus, inflate, initializeFadingEdge, initializeScrollbars, invalidate, invalidate, invalidate, invalidateDrawable, isActivated, isAttachedToWindow, isClickable, isDirty, isDrawingCacheEnabled, isDuplicateParentStateEnabled, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isHapticFeedbackEnabled, isHardwareAccelerated, isHorizontalFadingEdgeEnabled, isHorizontalScrollBarEnabled, isHovered, isInEditMode, isInLayout, isInTouchMode, isLaidOut, isLayoutDirectionResolved, isLayoutRequested, isLongClickable, isOpaque, isPaddingOffsetRequired, isPaddingRelative, isPressed, isSaveEnabled, isSaveFromParentEnabled, isScrollbarFadingEnabled, isScrollContainer, isSelected, isShown, isSoundEffectsEnabled, isTextAlignmentResolved, isTextDirectionResolved, isVerticalFadingEdgeEnabled, isVerticalScrollBarEnabled, jumpDrawablesToCurrentState, layout, measure, mergeDrawableStates, offsetLeftAndRight, offsetTopAndBottom, onAnimationEnd, onAnimationStart, onCancelPendingInputEvents, onCheckIsTextEditor, onConfigurationChanged, onCreateContextMenu, onCreateDrawableState, onCreateInputConnection, onDisplayHint, onDragEvent, onDraw, onDrawScrollBars, onFilterTouchEventForSecurity, onFinishInflate, onFinishTemporaryDetach, onFocusChanged, onGenericMotionEvent, onHoverChanged, onHoverEvent, onInitializeAccessibilityEvent, onInitializeAccessibilityNodeInfo, onKeyDown, onKeyLongPress, onKeyMultiple, onKeyPreIme, onKeyShortcut, onKeyUp, onLayout, onOverScrolled, onPopulateAccessibilityEvent, onRestoreInstanceState, onRtlPropertiesChanged, onSaveInstanceState, onScreenStateChanged, onScrollChanged, onSetAlpha, onSizeChanged, onStartTemporaryDetach, onTrackballEvent, onVisibilityChanged, onWindowFocusChanged, onWindowSystemUiVisibilityChanged, overScrollBy, performAccessibilityAction, performClick, performHapticFeedback, performHapticFeedback, performLongClick, playSoundEffect, post, postDelayed, postInvalidate, postInvalidate, postInvalidateDelayed, postInvalidateDelayed, postInvalidateOnAnimation, postInvalidateOnAnimation, postOnAnimation, postOnAnimationDelayed, refreshDrawableState, removeCallbacks, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestFitSystemWindows, requestFocus, requestFocus, requestFocus, requestFocusFromTouch, requestLayout, requestRectangleOnScreen, requestRectangleOnScreen, resolveSize, resolveSizeAndState, restoreHierarchyState, saveHierarchyState, scheduleDrawable, scrollBy, scrollTo, sendAccessibilityEvent, sendAccessibilityEventUnchecked, setAccessibilityDelegate, setAccessibilityLiveRegion, setActivated, setAlpha, setAnimation, setBackground, setBackgroundColor, setBackgroundDrawable, setBackgroundResource, setBottom, setCameraDistance, setClickable, setClipBounds, setContentDescription, setDrawingCacheBackgroundColor, setDrawingCacheEnabled, setDrawingCacheQuality, setDuplicateParentStateEnabled, setEnabled, setFadingEdgeLength, setFilterTouchesWhenObscured, setFitsSystemWindows, setFocusable, setFocusableInTouchMode, setHapticFeedbackEnabled, setHasTransientState, setHorizontalFadingEdgeEnabled, setHorizontalScrollBarEnabled, setHovered, setId, setImportantForAccessibility, setKeepScreenOn, setLabelFor, setLayerPaint, setLayerType, setLayoutDirection, setLayoutParams, setLeft, setLongClickable, setMeasuredDimension, setMinimumHeight, setMinimumWidth, setNextFocusDownId, setNextFocusForwardId, setNextFocusLeftId, setNextFocusRightId, setNextFocusUpId, setOnClickListener, setOnCreateContextMenuListener, setOnDragListener, setOnFocusChangeListener, setOnGenericMotionListener, setOnHoverListener, setOnKeyListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setOverScrollMode, setPadding, setPaddingRelative, setPivotX, setPivotY, setPressed, setRight, setRotation, setRotationX, setRotationY, setSaveEnabled, setSaveFromParentEnabled, setScaleX, setScaleY, setScrollBarDefaultDelayBeforeFade, setScrollBarFadeDuration, setScrollbarFadingEnabled, setScrollBarSize, setScrollBarStyle, setScrollContainer, setScrollX, setScrollY, setSelected, setSoundEffectsEnabled, setSystemUiVisibility, setTag, setTag, setTextAlignment, setTextDirection, setTop, setTouchDelegate, setTranslationX, setTranslationY, setVerticalFadingEdgeEnabled, setVerticalScrollBarEnabled, setVerticalScrollbarPosition, setWillNotCacheDrawing, setWillNotDraw, setX, setY, showContextMenu, startActionMode, startAnimation, startDrag, toString, unscheduleDrawable, unscheduleDrawable, verifyDrawable, willNotCacheDrawing, willNotDrawpublic GLMapSurfaceView(android.content.Context context)
public GLMapSurfaceView(android.content.Context context,
android.util.AttributeSet attrs)
public void init(int blankLayerViewId)
public void init(int blankLayerViewId,
MapViewEventListener mapListener)
public void init(int blankLayerViewId,
android.location.Location lastKnownLocation,
MapViewEventListener mapListener)
public void init(int blankLayerViewId,
android.location.Location firstLocation,
android.location.Location secondLocation,
android.graphics.Rect rect,
MapViewEventListener mapListener)
public void setMapListener(MapViewEventListener mapListener)
public MapViewEventListener getMapListener()
protected void onDetachedFromWindow()
onDetachedFromWindow in class android.opengl.GLSurfaceViewpublic void onPause()
onPause in class android.opengl.GLSurfaceViewpublic void onResume()
onResume in class android.opengl.GLSurfaceViewpublic static void onDestroy()
public void disableTouch(boolean touchDisabled)
public boolean isTouchDisabled()
public void setCameraDeclination(int zoomLevel,
double declination,
boolean needAnimation)
public double getCameraDeclination()
public long setVehicle2D(Annotation annotation)
public long setVehicle3D(String model)
public long setVehicle3D(byte[] model)
public void showTurnRouteSummary()
public void showTurnArrow(int selectSegmentIndex)
public void hideTurnArrow(int selectSegmentIndex)
public void clearRoute()
public void setVehicleLocation(android.location.Location l,
boolean needBlueCircle,
boolean needMove)
public void setAdi(android.location.Location location,
GLMapSurfaceView.RenderMode renderMode,
float zoomLevel,
android.graphics.Rect regionBound)
public void moveTo(android.location.Location latLon)
protected float getZoomLevel()
public void setZoomLevel(float zoomLevel,
boolean needTransition)
public static void setServerUrl(String vectorTileUrl1, String vectorTileUrlParams1, String trafficTileUrl1, String trafficTileUrlParams1)
public final MapView.TouchMode getMultiTouchMode()
public void setMultiTouchMode(MapView.TouchMode mode)
protected int getGLRenderMode()
protected void setRenderMode(GLMapSurfaceView.RenderMode renderMode)
public void setDisplayTraffic(boolean enable)
public void setDisplayTrafficIncidents(boolean enable)
public void setDisplayTrafficCameras(boolean enable)
public void setDisplaySpeedTraps(boolean enable)
public void setDisplayVehicle(boolean enable)
public void followVehicle(boolean follow)
public void setRasterMode(int type)
public void removeOverlay(OverlayId overlay)
protected long addAnnotation(Annotation annotation)
protected void addAnnotation(Annotation annotation, boolean refresh)
protected android.location.Location getCameraLocation()
public boolean hideAnnotation(Annotation annotation)
public boolean showAnnotation(Annotation annotation)
public void setHighlightAnnotation(int id,
boolean needMove)
public long getHighlightAnnotationId()
public void removeAllAnnotation()
public void removeAnnotation(Annotation annotation)
public void removeAnnotation(long id)
public ArrayList<Annotation> getAnnotations()
public long getSpriteVehicleAnnotationId()
public long getModelVehicleAnnotationId()
public boolean isOnRoad(android.location.Location location,
int[] threshold,
boolean ignoreHeading)
public void setMapColor(GLMapSurfaceView.MapColor mapColor)
public void refreshMapData()
public GLMapSurfaceView.MapColor getMapColor()
public void setShowSky(boolean isShowSky)
public float calculateZoom(ArrayList<Annotation> annotations, Annotation centerAnno)
public void calculateRegion(double northLat,
double westLon,
double southLat,
double eastLon,
float[] zoomLevel,
double[] lookAtLatitude,
double[] lookAtLongitude)
protected android.location.Location getLatLon(int x,
int y)
public byte[] getBitmapSnapshot(int x,
int y,
int width,
int height)
public void showRegion(double northLat,
double westLon,
double southLat,
double eastLon)
public void showRegion(double northLat,
double westLon,
double southLat,
double eastLon,
android.graphics.Rect rect)
public boolean getEngineBooleanFlag(int key)
public void setEngineBooleanFlag(int key,
boolean value)
public boolean onTouchEvent(android.view.MotionEvent e)
onTouchEvent in class android.view.Viewpublic void setTurnRouteZoomLevel(int width,
int height)
public boolean isTurnRouteBoundValid()
public void setLocation(android.location.Location location)
public void showCopyRight(int x,
int y,
int pixelWidth,
int pixelHeight)
public Annotation.AnnotationLayer unusedAnnotationLayer()
public void enableAnnotationLayer(Annotation.AnnotationLayer layer)
public void enableAnnotationLayers(ArrayList<Annotation.AnnotationLayer> layers)
public void disableAnnotationLayer(Annotation.AnnotationLayer layer)
public void disableAnnotationLayers(ArrayList<Annotation.AnnotationLayer> layers)
public void disableAllAnnotationLayers()
public void loadConfiguration(String configFile)
public void loadConfigurationForTvOut(String configFile)
public void setViewConfigPrefix(String configPrefix)
public void setVisibility(int visibility)
setVisibility in class android.view.SurfaceViewpublic void activatePopup(Popup popup)
public void removePopup()