

Classes | |
| interface | CountrySignage |
| interface | DataReadyListener |
| interface | DataState |
| interface | GeoCoordinateToScreenPointCallback |
| class | MapDataModel |
| interface | MapLayerCategory |
| interface | OnInitListener |
| interface | SpeedUnits |
| class | State |
| interface | WarningsType |
Public Member Functions | |
| Pair< Float, Float > | getMinMaxZoomLevel () |
| boolean | isValid () |
| void | addMapGestureListener (final MapGesturesDetector.MapGestureListener listener) |
| boolean | removeMapGestureListener (MapGesturesDetector.MapGestureListener listener) |
| Camera.CameraModel | getCameraModel () |
| View | getView () |
| void | setZOrderOnTop (final boolean isOnTop) |
| void | setZOrderMediaOverlay (final boolean isMediaOverlay) |
| void | setPixelFormat (final int pixelFormat) |
| void | addEglCallback (@NonNull final GlSurfaceListener.EglCallback callback) |
| void | removeEglCallback (@NonNull final GlSurfaceListener.EglCallback callback) |
| PositionIndicator | getPositionIndicator () |
| CameraState.PositionOrientation | calculateFromMapRectangle (@NonNull final MapRectangle mapRectangle, @NonNull final MapCenter mapCenter, @FloatRange(from=-180.0, to=180.0) final float rotation, final float tilt, @FloatRange(from=0.0, to=Float.MAX_VALUE) final float maxZoomLevel) |
| CameraState | calculateFromMapRectangle (@NonNull final MapRectangle mapRectangle, @NonNull final MapCenter mapCenter, @FloatRange(from=-180.0, to=180.0) final float rotation, final float tilt, @FloatRange(from=0.0, to=Float.MAX_VALUE) final float maxZoomLevel, final @Nullable CameraState sourceState) |
| GeoCoordinates | geoCoordinatesFromPoint (final int x, final int y) |
| List< GeoCoordinates > | geoCoordinatesFromPoints (final @NonNull List< Point > points) |
| List< Point > | screenPointsFromGeoCoordinates (final @NonNull List< GeoCoordinates > geoCoordinates) |
| MapDataModel | getMapDataModel () |
| boolean | addClusterLayer (final ClusterLayer cluster) |
| boolean | removeClusterLayer (final ClusterLayer cluster) |
| synchronized void | addGeoCoordinateToScreenPointListener (final GeoCoordinateToScreenPointCallback callback) |
| synchronized void | removeGeoCoordinateToScreenPointListener (final GeoCoordinateToScreenPointCallback callback) |
| List< String > | getActiveSkins () |
| List< String > | getAvailableSkins () |
| void | setMapLanguage (final @NonNull Locale locale) |
| void | setMapLanguageInternal (final @NonNull Locale locale) |
| void | setMapSpeedUnits (final @SpeedUnits int units) |
| void | setMapSpeedUnitsInternal (final @SpeedUnits int units) |
| void | setMapLayerCategoryVisibility (final @MapLayerCategory int category, final boolean enable) |
| void | setMapLayerCategoryVisibilityInternal (final @MapLayerCategory int category, final boolean enable) |
| void | setWarningsTypeVisibilityInternal (final @WarningsType int type, final boolean enable) |
| boolean | getWarningsTypeVisibilityInternal (final @WarningsType int type) |
| void | setIncidentWarningSettings (@NonNull final IncidentWarningSettings settings) |
| void | setIncidentWarningSettingsInternal (@Nullable final IncidentWarningSettings settings) |
| void | setMapWarningSettings (@NonNull final MapWarningSettings settings) |
| void | setMapWarningSettingsInternal (@Nullable final MapWarningSettings settings) |
| void | setLogisticInfoSettings (@NonNull final LogisticInfoSettings settings) |
| void | showDebugView (final boolean enable) |
| void | setFpsLimit (final FpsConfig fpsConfig) |
| FpsConfig | getFpsLimit () |
| void | enableRendering (final boolean enable) |
| int | requestObjectsAtPoint (final float x, final float y, final RequestObjectCallback callback) |
| void | addValidityListener (final MapValidityListener listener) |
| void | removeValidityListener (final MapValidityListener listener) |
| void | addDataReadyListener (final DataReadyListener listener) |
| void | addDataReadyListener (final DataReadyListener listener, @Nullable final Executor executor) |
| void | removeDataReadyListener (final DataReadyListener listener) |
| float | scaleScreenToView (final float value) |
| int | scaleScreenToView (final int value) |
A class used by an application to display a map.
| boolean com.sygic.sdk.map.MapView.addClusterLayer | ( | final ClusterLayer | cluster | ) |
Add cluster of markers to map. By the time the cluster is added to map, all markers have to be added in map, otherwise an exception will be thrown.
| void com.sygic.sdk.map.MapView.addDataReadyListener | ( | final DataReadyListener | listener | ) |
| void com.sygic.sdk.map.MapView.addDataReadyListener | ( | final DataReadyListener | listener, |
| @Nullable final Executor | executor | ||
| ) |
| void com.sygic.sdk.map.MapView.addEglCallback | ( | @NonNull final GlSurfaceListener.EglCallback | callback | ) |
Adds callback for underlying OpenGL calls of swap buffers.
| callback | GlSurfaceListener.EglCallback callback to handle GlSurfaceListener.EglCallback#eglSwapBuffers() event. |
| synchronized void com.sygic.sdk.map.MapView.addGeoCoordinateToScreenPointListener | ( | final GeoCoordinateToScreenPointCallback | callback | ) |
| void com.sygic.sdk.map.MapView.addMapGestureListener | ( | final MapGesturesDetector.MapGestureListener | listener | ) |
Adds the map gesture listener.
| void com.sygic.sdk.map.MapView.addValidityListener | ( | final MapValidityListener | listener | ) |
| CameraState.PositionOrientation com.sygic.sdk.map.MapView.calculateFromMapRectangle | ( | @NonNull final MapRectangle | mapRectangle, |
| @NonNull final MapCenter | mapCenter, | ||
| @FloatRange(from=-180.0, to=180.0) final float | rotation, | ||
| final float | tilt, | ||
| @FloatRange(from=0.0, to=Float.MAX_VALUE) final float | maxZoomLevel | ||
| ) |
Calculates CameraState.PositionOrientation to animate Camera with, given mapRectangle and camera states
| mapRectangle | Rectangle with margins to be zoomed to |
| mapCenter | Wanted map center state |
| rotation | Wanted rotation state |
| tilt | Wanted tilt state |
| maxZoomLevel | Maximum zoom level allowed (ie. limits zoom in of the map) |
| CameraState com.sygic.sdk.map.MapView.calculateFromMapRectangle | ( | @NonNull final MapRectangle | mapRectangle, |
| @NonNull final MapCenter | mapCenter, | ||
| @FloatRange(from=-180.0, to=180.0) final float | rotation, | ||
| final float | tilt, | ||
| @FloatRange(from=0.0, to=Float.MAX_VALUE) final float | maxZoomLevel, | ||
| final @Nullable CameraState | sourceState | ||
| ) |
Calculates CameraState to animate Camera with, given mapRectangle and camera states
| mapRectangle | Rectangle with margins to be zoomed to |
| mapCenter | Wanted map center state |
| rotation | Wanted rotation state |
| tilt | Wanted tilt state |
| maxZoomLevel | Maximum zoom level allowed (ie. limits zoom in of the map) |
| sourceState | Source camera state to get non-calculated parameters from |
| void com.sygic.sdk.map.MapView.enableRendering | ( | final boolean | enable | ) |
| GeoCoordinates com.sygic.sdk.map.MapView.geoCoordinatesFromPoint | ( | final int | x, |
| final int | y | ||
| ) |
Returns geo coordinates of the point on the map regarding of screen coordinates.
| x | X screen coordinate |
| y | Y screen coordinate |
| List<GeoCoordinates> com.sygic.sdk.map.MapView.geoCoordinatesFromPoints | ( | final @NonNull List< Point > | points | ) |
Returns geo coordinates of the points on the map regarding of screen coordinates.
| points | list of X and Y screen coordinates. |
| List<String> com.sygic.sdk.map.MapView.getActiveSkins | ( | ) |
Returns list of names of skins which are set for current map.
| List<String> com.sygic.sdk.map.MapView.getAvailableSkins | ( | ) |
Returns list of names of available skins.
| Camera.CameraModel com.sygic.sdk.map.MapView.getCameraModel | ( | ) |
| FpsConfig com.sygic.sdk.map.MapView.getFpsLimit | ( | ) |
| MapDataModel com.sygic.sdk.map.MapView.getMapDataModel | ( | ) |
Returns MapDataModel backing up the MapView
| Pair<Float, Float> com.sygic.sdk.map.MapView.getMinMaxZoomLevel | ( | ) |
| PositionIndicator com.sygic.sdk.map.MapView.getPositionIndicator | ( | ) |
Returns the PositionIndicator.
| View com.sygic.sdk.map.MapView.getView | ( | ) |
Returns object represents display surface for OpenGL rendering It may be android.view.SurfaceView or android.view.TextureView, depends on surface type while creating fragment
| boolean com.sygic.sdk.map.MapView.getWarningsTypeVisibilityInternal | ( | final @WarningsType int | type | ) |
| boolean com.sygic.sdk.map.MapView.isValid | ( | ) |
Checks if Mapview is valid. It becomes invalid after MapFragment gets destroyed. If invalid, all setters do nothing and all getters return 0, null or invalid objects.
| boolean com.sygic.sdk.map.MapView.removeClusterLayer | ( | final ClusterLayer | cluster | ) |
Remove cluster of markers from map
| void com.sygic.sdk.map.MapView.removeDataReadyListener | ( | final DataReadyListener | listener | ) |
| void com.sygic.sdk.map.MapView.removeEglCallback | ( | @NonNull final GlSurfaceListener.EglCallback | callback | ) |
Removes callback for underlying OpenGL calls of swap buffers.
| callback | GlSurfaceListener.EglCallback callback to unregister. |
| synchronized void com.sygic.sdk.map.MapView.removeGeoCoordinateToScreenPointListener | ( | final GeoCoordinateToScreenPointCallback | callback | ) |
| boolean com.sygic.sdk.map.MapView.removeMapGestureListener | ( | MapGesturesDetector.MapGestureListener | listener | ) |
Removes the map gesture listener.
| void com.sygic.sdk.map.MapView.removeValidityListener | ( | final MapValidityListener | listener | ) |
| int com.sygic.sdk.map.MapView.requestObjectsAtPoint | ( | final float | x, |
| final float | y, | ||
| final RequestObjectCallback | callback | ||
| ) |
Requests the information about point on map
| x | X screen coordinate |
| y | Y screen coordinate |
| callback | RequestObjectCallback |
| float com.sygic.sdk.map.MapView.scaleScreenToView | ( | final float | value | ) |
| int com.sygic.sdk.map.MapView.scaleScreenToView | ( | final int | value | ) |
| List<Point> com.sygic.sdk.map.MapView.screenPointsFromGeoCoordinates | ( | final @NonNull List< GeoCoordinates > | geoCoordinates | ) |
Returns geo coordinates of the point on the map regarding of screen coordinates.
| geoCoordinates | list of geo coordinates |
| void com.sygic.sdk.map.MapView.setFpsLimit | ( | final FpsConfig | fpsConfig | ) |
| void com.sygic.sdk.map.MapView.setIncidentWarningSettings | ( | @NonNull final IncidentWarningSettings | settings | ) |
| void com.sygic.sdk.map.MapView.setIncidentWarningSettingsInternal | ( | @Nullable final IncidentWarningSettings | settings | ) |
| void com.sygic.sdk.map.MapView.setLogisticInfoSettings | ( | @NonNull final LogisticInfoSettings | settings | ) |
| void com.sygic.sdk.map.MapView.setMapLanguage | ( | final @NonNull Locale | locale | ) |
Sets the language for map This will affect language of displayed names on map
| locale | The language for map |
| void com.sygic.sdk.map.MapView.setMapLanguageInternal | ( | final @NonNull Locale | locale | ) |
| void com.sygic.sdk.map.MapView.setMapLayerCategoryVisibility | ( | final @MapLayerCategory int | category, |
| final boolean | enable | ||
| ) |
| void com.sygic.sdk.map.MapView.setMapLayerCategoryVisibilityInternal | ( | final @MapLayerCategory int | category, |
| final boolean | enable | ||
| ) |
| void com.sygic.sdk.map.MapView.setMapSpeedUnits | ( | final @SpeedUnits int | units | ) |
| void com.sygic.sdk.map.MapView.setMapSpeedUnitsInternal | ( | final @SpeedUnits int | units | ) |
| void com.sygic.sdk.map.MapView.setMapWarningSettings | ( | @NonNull final MapWarningSettings | settings | ) |
| void com.sygic.sdk.map.MapView.setMapWarningSettingsInternal | ( | @Nullable final MapWarningSettings | settings | ) |
| void com.sygic.sdk.map.MapView.setPixelFormat | ( | final int | pixelFormat | ) |
| void com.sygic.sdk.map.MapView.setWarningsTypeVisibilityInternal | ( | final @WarningsType int | type, |
| final boolean | enable | ||
| ) |
| void com.sygic.sdk.map.MapView.setZOrderMediaOverlay | ( | final boolean | isMediaOverlay | ) |
| void com.sygic.sdk.map.MapView.setZOrderOnTop | ( | final boolean | isOnTop | ) |
| void com.sygic.sdk.map.MapView.showDebugView | ( | final boolean | enable | ) |