Members
(static) token
PropertiesName | Type | Description |
---|---|---|
gem.core.App.token | string | App token. Must be set before initApp() call |
Methods
(static) checkLocationAccess(funcReturnError)
Checks if location access is granted.
Name | Type | Description |
---|---|---|
funcReturnError | function | Callback function to handle error. |
(static) createCamera(scene) → {Module.MapCamera}
Creates a new camera for the given scene.
Name | Type | Description |
---|---|---|
scene | object | The scene for which to create a camera. |
The created camera.
- Type:
- Module.
MapCamera
(static) createElementCopyright()
Start the initilization process.Is an async process.Getting the resources. Please use gem.core.App.registerInitialCallFunction before calling this method,if you want to apply settings at application startup.
(static) destroyApp()
Destroy app resources. Should be called at page closing
(static) getBoundingBoxForCoordinates(coordinatesArray) → {gem.core.BoundingBox}
Returns bounding box for an array of coordinates
Name | Type | Description |
---|---|---|
coordinatesArray | Array.<gem.core.Coordinates> |
- Type:
- gem.
core. BoundingBox
(static) getCountryFlagImage(isoCode, bitmap)
Retrieves the image of the country flag based on the ISO code.
Name | Type | Description |
---|---|---|
isoCode | string | The ISO code of the country. |
bitmap | gem. | The output bitmap container for the flag image. |
(static) getDefaultScene() → {object}
Retrieves the default scene.
The default scene.
- Type:
- object
(static) getDefaultScreen() → {gem.d3Scene.Screen}
returns the default Screen
default Screen
- Type:
- gem.
d3Scene. Screen
(static) getDistanceBetween2Coordinates(coordinate1, coordinate2) → {number}
Name | Type | Description |
---|---|---|
coordinate1 | gem. | |
coordinate2 | gem. |
- returns distance between the 2 coordinates
- Type:
- number
(static) getLanguage() → {string}
Retrieves the current language setting.
The current language.
- Type:
- string
(static) getLastKnownPosition() → {gem.core.Coordinates}
Get Last Known GPS position
- Type:
- gem.
core. Coordinates
(static) getWorldMapVersion() → {string}
Retrieves the version of the world map.
The version of the world map.
- Type:
- string
(static) initApp(initOptions)
Init App . Mandatory to be called.
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
initOptions | object | init options Properties
|
(static) initAppScreen(initOptions) → {gem.core.AppScreen}
Init App . Mandatory to be called.
Name | Type | Description |
---|---|---|
initOptions | object | init options |
- returns AppScreen Object
- Type:
- gem.
core. AppScreen
(static) registerConnectionStatusChanged(callback)
Register Connection status changed callback
Name | Type | Description |
---|---|---|
callback | * |
(static) registerInitialCallFunction(callFunction)
Register initial call function. Must be added before initApp() call
Name | Type | Description |
---|---|---|
callFunction | callback |
(static) registerPostInitializeCallback(callbackfunction)
Name | Type | Description |
---|---|---|
callbackfunction | * |
(static) registerPreRenderCallback(callbackfunction)
Name | Type | Description |
---|---|---|
callbackfunction | * |
(static) registerRouteCalculationFromParameters(callFunction)
Register route calculation from url parameters. Must be added before initApp() call
Name | Type | Description |
---|---|---|
callFunction | callback |
(static) requestLocationAccess()
Requests access to location services.
(static) setCanvas(image_data, width, height, canvas)
Name | Type | Description |
---|---|---|
image_data | Array.<Byte> | canvas image data |
width | number | width of canvas |
height | number | height of canvas |
canvas | object | canvas element |
(static) setCustomUrl(serviceCode, customURL)
Sets a custom URL for a specific service.
Name | Type | Description |
---|---|---|
serviceCode | string | The code of the service. |
customURL | string | The custom URL to set. |
(static) setDefaultStyle(styleFilePath)
Set the path to the style to be used at startup.Must be added before initApp() call
Name | Type | Description |
---|---|---|
styleFilePath | string |
(static) stopLocationAccess()
Stops access to location services.
(static) updateHeader()
Update the url header with informations about location ( lat, lon, z = zoom level )