Android Java SDK for Sygic 3D
ApiMaps Class Reference

Static Public Member Functions

static void showCoordinatesOnMap (Position location, int zoom, int maxTime) throws GeneralException
 shows the given geo location on map More...
 
static void showRectangleOnMap (Rectangle rect, int maxTime) throws GeneralException
 shows the given geo rectangle on map More...
 
static void loadGeoFile (String name, String json, int maxTime) throws GeneralException
 loads the given geo layer and adds it on map as overlay More...
 
static void unloadGeoFile (String name, int maxTime) throws GeneralException
 removes the given geo layer from map More...
 
static void unloadGeoFiles (int maxTime) throws GeneralException
 removes all dynamically loaded geo layers from map More...
 
static void switchMap (String loadPath, int maxTime) throws GeneralException
 Unloads current map and loads a new one. More...
 

Member Function Documentation

◆ loadGeoFile()

static void loadGeoFile ( String  name,
String  json,
int  maxTime 
) throws GeneralException
static

loads the given geo layer and adds it on map as overlay

Parameters
namesets a string identification for the given overlay
jsonstring defining the geo layer using geo json standard format
maxTimeMaximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception
Remarks
See the json structure of supported geo json

References Api.getInstance(), and Api.getService().

◆ showCoordinatesOnMap()

static void showCoordinatesOnMap ( Position  location,
int  zoom,
int  maxTime 
) throws GeneralException
static

shows the given geo location on map

Parameters
locationmodel.Position instance which contains the location which will be shown on map.
zoomDistance (in meters) form ground.Range of this parameter should be between 50 and 30000000.
maxTimeMaximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception
Remarks
Point with taken location will be shown in the middle of BrowseMap.
BrowseMap is map shown on after clicking Browse Map menu button. BrowseMap allows browse the loaded maps and change zoom.

References Api.getInstance(), and Api.getService().

◆ showRectangleOnMap()

static void showRectangleOnMap ( Rectangle  rect,
int  maxTime 
) throws GeneralException
static

shows the given geo rectangle on map

Parameters
rectmodel.Rectangle instance which contains the rectangle to show on map.
maxTimeMaximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception
Remarks
Zoom will be adjusted so that entire rectangle will be shown.
BrowseMap is map shown on after clicking Browse Map menu button. BrowseMap allows browse the loaded maps and change zoom.

References Api.getInstance(), and Api.getService().

◆ switchMap()

static void switchMap ( String  loadPath,
int  maxTime 
) throws GeneralException
static

Unloads current map and loads a new one.

Parameters
loadPathFull path to maps folder.
maxTimeMaximum of time (in milliseconds) function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionGeneralException#getCode()

References Api.getInstance(), and Api.getService().

◆ unloadGeoFile()

static void unloadGeoFile ( String  name,
int  maxTime 
) throws GeneralException
static

removes the given geo layer from map

Parameters
namethe identification of the overlay
maxTimeMaximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().

◆ unloadGeoFiles()

static void unloadGeoFiles ( int  maxTime) throws GeneralException
static

removes all dynamically loaded geo layers from map

Parameters
maxTimeMaximum time (in milliseconds) the function can take. If maxTime=0 function execution is not time limited.
Exceptions
GeneralExceptionthe general exception

References Api.getInstance(), and Api.getService().