com.sygic.sdk.map.MapView Class Reference
Inheritance diagram for com.sygic.sdk.map.MapView:
Collaboration diagram for com.sygic.sdk.map.MapView:

Classes

interface  DataReadyListener
 
interface  DataState
 
interface  GeoCoordinateToScreenPointCallback
 
interface  GeometryGroup
 
class  MapDataModel
 
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 ()
 
GeoCoordinates geoCoordinatesFromPoint (final int x, final int y)
 
List< GeoCoordinatesgeoCoordinatesFromPoints (final @NonNull List< Point > points)
 
List< Point > screenPointsFromGeoCoordinates (final @NonNull List< GeoCoordinates > geoCoordinates)
 
MapDataModel getMapDataModel ()
 
boolean addMapObject (final MapObject object)
 
boolean removeMapObject (final MapObject object)
 
boolean addClusterLayer (final ClusterLayer cluster)
 
boolean removeClusterLayer (final ClusterLayer cluster)
 
boolean updateMapObject (final MapObject object)
 
synchronized void addGeoCoordinateToScreenPointListener (final GeoCoordinateToScreenPointCallback callback)
 
synchronized void removeGeoCoordinateToScreenPointListener (final GeoCoordinateToScreenPointCallback callback)
 
List< String > getActiveSkins ()
 
void setActiveSkin (final @NonNull List< String > skins)
 
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 setGeometryGroupVisibility (final @GeometryGroup int group, final boolean enable)
 
void setGeometryGroupVisibilityInternal (final @GeometryGroup int group, final boolean enable)
 
void setWarningsTypeVisibility (final @WarningsType int type, final boolean enable)
 
void setWarningsTypeVisibilityInternal (final @WarningsType int type, final boolean enable)
 
boolean getWarningsTypeVisibilityInternal (final @WarningsType int type)
 
void setRadarWarningSettings (@NonNull final RadarWarningSettings settings)
 
void setRadarWarningSettingsInternal (@Nullable final RadarWarningSettings 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 removeDataReadyListener (final DataReadyListener listener)
 

Detailed Description

A class used by an application to display a map.

Member Function Documentation

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.addEglCallback ( @NonNull final GlSurfaceListener.EglCallback  callback)

Adds callback for underlying OpenGL calls of swap buffers.

Parameters
callbackGlSurfaceListener.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.

boolean com.sygic.sdk.map.MapView.addMapObject ( final MapObject  object)

This method is deprecated. Use addMapObject method on your MapDataModel

Adds specified map object on map.

Parameters
objectMapObject object.
Returns
True if object was added.
void com.sygic.sdk.map.MapView.addValidityListener ( final MapValidityListener  listener)
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.

Parameters
xX screen coordinate
yY screen coordinate
Returns
Geo coordinates of the point on the map or null if is not possible to translate.
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.

Parameters
pointslist of X and Y screen coordinates.
Returns
List of geo coordinates of the point on the map or null if is not possible to translate.
List<String> com.sygic.sdk.map.MapView.getActiveSkins ( )

Returns list of names of skins which are set for current map.

Returns
List of skins which are set for current map.
List<String> com.sygic.sdk.map.MapView.getAvailableSkins ( )

Returns list of names of available skins.

Returns
List 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

Returns
active map model
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

Returns
Object represents display surface for OpenGL rendering. May return null, after MapFragment is destroyed.
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.

Returns
true if valid
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.

Parameters
callbackGlSurfaceListener.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.

Returns
true
if the listener was found and removed
boolean com.sygic.sdk.map.MapView.removeMapObject ( final MapObject  object)

This method is deprecated. Use removeMapObject method on your MapDataModel

Removes specified map object from map.

Parameters
objectMapObject object.
Returns
If object was removed.
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

Parameters
xX screen coordinate
yY screen coordinate
callbackRequestObjectCallback
Returns
unique id of the request
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.

Parameters
geoCoordinateslist of geo coordinates
Returns
List of screen points on the map or null if is not possible to translate.
void com.sygic.sdk.map.MapView.setActiveSkin ( final @NonNull List< String >  skins)

Sets the map skin. It is combination of available skins returned via getAvailableSkins(). Skin on index 0 has the top priority and will override subsequent values..

Parameters
skinsList of skin names to set.
void com.sygic.sdk.map.MapView.setFpsLimit ( final FpsConfig  fpsConfig)
void com.sygic.sdk.map.MapView.setGeometryGroupVisibility ( final @GeometryGroup int  group,
final boolean  enable 
)
void com.sygic.sdk.map.MapView.setGeometryGroupVisibilityInternal ( final @GeometryGroup int  group,
final boolean  enable 
)
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

Parameters
localeThe language for map
void com.sygic.sdk.map.MapView.setMapLanguageInternal ( final @NonNull Locale  locale)
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.setRadarWarningSettings ( @NonNull final RadarWarningSettings  settings)
void com.sygic.sdk.map.MapView.setRadarWarningSettingsInternal ( @Nullable final RadarWarningSettings  settings)
void com.sygic.sdk.map.MapView.setWarningsTypeVisibility ( final @WarningsType int  type,
final boolean  enable 
)

Deprecated.

Use MapDataModel#setWarningsTypeVisibility(int, boolean).

Note: Model can be accessed with getMapDataModel().

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)
boolean com.sygic.sdk.map.MapView.updateMapObject ( final MapObject  object)

The documentation for this class was generated from the following file: