Extends
Methods
activateHighlight(resultedLandmarks, colorInfo, options, usableIcons)
Enable the default highlight service for the given landmark list.
Name | Type | Description |
---|---|---|
resultedLandmarks | gem. | landmark list on which to apply highlights |
colorInfo | gem. | color do be used |
options | gem. | options to be used for the landmark. Can be combined with | operator |
usableIcons | gem. | (optional) Icon to replace with |
addGeoJsonAsCustomMarkers(geojsonbuffer, name, sourceslist, externalRenderer, maxGroupingLevelopt)
Add GeoJson as custom marker in the MapView
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
geojsonbuffer | string | Actual Geo Json string buffer. | ||
name | string | name for the added source(s) | ||
sourceslist | gem. | output list of created vector sources | ||
externalRenderer | gem. | optional. external renderer. If not used, the internal rendering will be used to display source data. | ||
maxGroupingLevel | number | <optional> | 13 | maximum map level to apply grouping |
addLandmarkStore(landmarkStore)
Add a landmark store to the view
Name | Type | Description |
---|---|---|
landmarkStore | gem. | landmark store to be added |
addPath(path, borderColor, innerColor, sizeOfBorderopt, sizeOfInneropt)
Adds a path to the view.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
path | object | The path object to add. | ||
borderColor | Object | The RGBA color of the border. | ||
innerColor | Object | The RGBA color of the inner part of the path. | ||
sizeOfBorder | number | <optional> | -1 | The size of the border. Defaults to -1 if not provided. |
sizeOfInner | number | <optional> | -1 | The size of the inner part of the path. Defaults to -1 if not provided. |
addStoreListAsCustomMarkers(storeList, name, sourceslist, externalRenderer, storeId, nMaxGroupingLevelopt)
Add Store Locations list as custom markers in the MapView
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
storeList | gem. | Store List to be added to the view | ||
name | string | Store list name | ||
sourceslist | gem. | output list of created vector sources | ||
externalRenderer | gem. | optional. external renderer. If not used, the internal rendering will be used to display source data. | ||
storeId | number | Store Id | ||
nMaxGroupingLevel | number | <optional> | 13 | Maximum level on which grouping can occur |
alignNorthUp(durationMs)
Set the map north-up oriented
Name | Type | Description |
---|---|---|
durationMs | number | Animation duration in miliseconds. 0 - for instant north-up. |
captureMapScreen() → {Uint8Array}
Capture map screen
- screen buffer
- Type:
- Uint8Array
captureMapScreenAsBitmapContainer() → {gem.d3Scene.BitmapContainer}
Capture map screen
- Type:
- gem.
d3Scene. BitmapContainer
centerOnArea(coordinatesTopLeft, coordinatesBottomRight, durationMs, rectangleFloat, callbackfunction, zoomLevel)
Center the on the given WGS area specified by top left wgs coordinate and bottomright coordinate
Name | Type | Description |
---|---|---|
coordinatesTopLeft | gem. | top left coordinates |
coordinatesBottomRight | gem. | bottom right coordinates |
durationMs | number | fly animation duration (milliseconds) |
rectangleFloat | gem. | custom view rectangle |
callbackfunction | callback | |
zoomLevel | number | zoom level 0 - max zoom level. See getMaxZoomLevel() |
centerOnCoordinates(coordinates, durationMs, callbackFunction, iXy, zoomLevel)
Center on a specified coordinates
Name | Type | Description |
---|---|---|
coordinates | gem. | |
durationMs | number | |
callbackFunction | callback | |
iXy | gem. | |
zoomLevel | number | zoom level 0 - max zoom level. See getMaxZoomLevel() |
centerOnRoute(route, durationMsopt, rectFloat)
Center on a route( route overview)
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
route | gem. | |||
durationMs | number | <optional> | 0 | duration for animation in ms |
rectFloat | gem. | custom view rectangle |
centerOnRouteInstruction(routeInstruction, screenCoordinatesopt, zoomLevelopt)
Center on Route Instruction
Name | Type | Attributes | Description |
---|---|---|---|
routeInstruction | gem. | ||
screenCoordinates | gem. | <optional> | screen coordinates, where to center |
zoomLevel | number | <optional> | zoom level |
centerOnRoutePortion(route, distBegin, distEnd, durationMsopt, rectFloat)
Center on a route( route overview)
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
route | gem. | |||
distBegin | number | distance begin | ||
distEnd | number | distance end | ||
durationMs | number | <optional> | 0 | duration for animation in ms |
rectFloat | gem. | custom view rectangle |
createSource(dataType, name, markerCollectionDisplaySettings) → {number}
Name | Type | Description |
---|---|---|
dataType | gem. | type of the source |
name | string | name given to the source |
markerCollectionDisplaySettings | gem. | display settings |
- generated source id
- Type:
- number
cursorSelectionLandmarks(resultedLandmarks)
Retrieve, in the given parameter, the list of landmarks under the cursor location.
Name | Type | Description |
---|---|---|
resultedLandmarks | gem. | resulted Landmarks |
deactivateHighlight()
Disable the highlight service.
delete()
calls emscripten object destructor
- Inherited From
disableEdit()
Disable Edit Mode
enableCursor(bVal)
Name | Type | Description |
---|---|---|
bVal | boolean |
enableEdit(callback)
Name | Type | Description |
---|---|---|
callback | callbackEdit |
enableOverlayItemWithExternalRendering(uId, externalRenderer)
Enable overlay Item with external Rendering
Name | Type | Description |
---|---|---|
uId | string | |
externalRenderer | gem. |
enableTouchGestures(gestures, enableFlag)
Toggle Touch Gesture
Name | Type | Description |
---|---|---|
gestures | gem. | gestures to be toggled |
enableFlag | boolean | enable or disable |
getCursorPositionWGS() → {gem.core.Xy}
Get current cursor position as WGS Coordinates
- WGS Coordinates
- Type:
- gem.
core. Xy
getMaxZoomLevel() → {number}
Get Maximum value for zoom level.
The maximum zoom value.
- Type:
- number
getNorthFixedFlag() → {bool}
- Type:
- bool
getNumberOfMarkersCollections() → {number}
Get total Number of Markers Collections
- Type:
- number
getRawPointer() → {object}
Returns emscripten object
- Inherited From
- Type:
- object
getTilt() → {number}
get tilt angle
- tilt angle
- Type:
- number
getVectorSourceAt(nId) → {gem.d3Scene.MarkerCollectionRef}
Name | Type | Description |
---|---|---|
nId | number | id for the needed source |
- source
getViewport() → {gem.core.RectangleInteger}
Get View viewport
- viewport
getZoomLevel() → {number}
Get the zoom level.
The zoom value.
- Type:
- number
isDeleted() → {boolean}
Check if emscripten object has been deleted
- Inherited From
- Type:
- boolean
isFollowingPosition() → {boolean}
Check if is it in follow position mode
- Type:
- boolean
queryStoreLocator(externalQueryListener, storeLocationList, storeId, bFullData, languageList, rectangleList)
Query store locator
Name | Type | Description |
---|---|---|
externalQueryListener | gem. | |
storeLocationList | gem. | |
storeId | number | store ID |
bFullData | boolean | To query full data, or partial data |
languageList | gem. | |
rectangleList | gem. | list of regions to query for data |
queryStoreLocatorConfiguration(externalQueryListener, storeId, resultConfigurationList)
Name | Type | Description |
---|---|---|
externalQueryListener | gem. | |
storeId | number | |
resultConfigurationList | gem. |
registerCameraChangeStateCallback(callback)
Name | Type | Description |
---|---|---|
callback | * |
registerForNextRenderFinished(callback)
Name | Type | Description |
---|---|---|
callback | * |
registerLandmarkClickedEvent(resultedLandmarks, callbackfunction)
Register click event listener for landmarks.
Name | Type | Description |
---|---|---|
resultedLandmarks | gem. | used for adding the clicked landmarks |
callbackfunction | callback | Click event callback |
registerOnTouchEvent(callback)
Name | Type | Description |
---|---|---|
callback | * |
registerOnViewRendered(callback)
Name | Type | Description |
---|---|---|
callback | * |
registerOverlayItemClickedEvent(callbackfunction)
Name | Type | Description |
---|---|---|
callbackfunction | callbackMarkers |
registerStyleUpdateFinishedCallback(callbackStyle)
Get notified when style update has finished
Name | Type | Description |
---|---|---|
callbackStyle | * |
removeLandmarkStore(landmarkStore)
Remove a landmark store from the view
Name | Type | Description |
---|---|---|
landmarkStore | gem. | landmark store to be removed |
removePath(path)
Removes a path from the view.
Name | Type | Description |
---|---|---|
path | object | The path object to remove. |
removeRoutefromView(route)
Remove route from view
Name | Type | Description |
---|---|---|
route | gem. | route that is being removed from the view |
removeVectorSource(pSource)
Name | Type | Description |
---|---|---|
pSource | gem. | source that should be deleted |
resizeView(rectangular)
Resize View
Name | Type | Description |
---|---|---|
rectangular | gem. | The new size as a rectangle.Values needs to be normalized from the screen size(0->1). |
setClippingArea(area)
Set area of view clipping
Name | Type | Description |
---|---|---|
area | gem. |
setCursorScreenPosition(screenCoordinates)
Set cursor position at a given position in the screen
Name | Type | Description |
---|---|---|
screenCoordinates | gem. | screen coordinates |
setMapLabelsFading(bVal)
Sets the fading of map labels.
Name | Type | Description |
---|---|---|
bVal | boolean | If true, map labels will fade. If false, they will not. |
setMapStyle(nId)
set the style by id
Name | Type | Description |
---|---|---|
nId | number |
setMapViewDetailsQualityLevel(qualityLevel)
Name | Type | Description |
---|---|---|
qualityLevel | number | 0 = Low Quality / High Performance;1 = Medium Quality; 2 = High Quality/ Low Performance |
setNorthFixedFlag(bFlag)
Name | Type | Description |
---|---|---|
bFlag | bool |
setTilt(angle)
set tilt angle
Name | Type | Description |
---|---|---|
angle | number | tilt angle |
setTrafficVisibility(bVal)
Sets the visibility of traffic information on the map.
Name | Type | Description |
---|---|---|
bVal | boolean | If true, traffic information will be visible. If false, it will not. |
setZoomLevel(zoomLevel)
Set zoom level
Name | Type | Description |
---|---|---|
zoomLevel | number | The zoom value. |
setZoomLevelOnPoint(zoomLevel, durationMs, positionInScreen)
Set zoom level, focusing in a specified screen point
Name | Type | Description |
---|---|---|
zoomLevel | number | The zoom value. |
durationMs | number | duration The animation duration in milliseconds (0 means no animation) |
positionInScreen | gem. | Screen coordinates under which map should keep position. |
showRouteInView(route, bIsMainRoute, bAddRouteLabels, routeRenderSettings)
Add a route in the collection to be shown in the view
Name | Type | Description |
---|---|---|
route | gem. | route that is being added |
bIsMainRoute | boolean | if the route should be added as a main route or not. |
bAddRouteLabels | boolean | if the route labels should be added or not. |
routeRenderSettings | RouteRenderSettings | route render settings |
startFollowingPosition(maxZoomLevel, maxAngle)
Start following the current position.
Name | Type | Description |
---|---|---|
maxZoomLevel | number | maximum zoom level |
maxAngle | number | maximum angle |
startOrbitCamera()
Start Orbit Mode
stopFollowingPosition()
Stop Following position
stopOrbitCamera()
Stop Orbit Mode
toggleMapPerspective()
Toogle map perspective. Predefined tilt values switch
transformScreenToWgs(screenCoordinates) → {gem.core.Coordinates}
Convert a screen coordinate to a WGS84 coordinate
Name | Type | Description |
---|---|---|
screenCoordinates | gem. | Screen coordinates |
- WGS coordinates
- Type:
- gem.
core. Coordinates
transformScreenToWgsRectGeoList(screenRectangle) → {gem.core.RectangleGeographicAreaList}
Transform screen coordinates to a list of Geographic Areas (WGS coordinates)
Name | Type | Description |
---|---|---|
screenRectangle | gem. |
- list of Geographic Areas
transformWgsToScreen(wgsCoordinates) → {gem.core.Xy}
Convert a WGS84 coordinate to a screen coordinate
Name | Type | Description |
---|---|---|
wgsCoordinates | gem. | wgs Coordinates |
- Screen coordinates
- Type:
- gem.
core. Xy
updateCurrentStyleFromJson(jsonBuffer)
Name | Type | Description |
---|---|---|
jsonBuffer | string | style buffer as a string |
updateCurrentStyleFromStyleBuffer(styleBuffer)
Name | Type | Description |
---|---|---|
styleBuffer | object |