|
Maps SDK for C++ 1.0.0
|
MapViewPreferences object. More...


Public Member Functions | |
| MapViewPreferences & | setMapViewPerspective (EMapViewPerspective perspective, Animation animation=Animation()) noexcept |
| Set the map view perspective. | |
| EMapViewPerspective | getMapViewPerspective () const noexcept |
| Get the map view perspective. | |
| double | getViewAngle () const noexcept |
| Get the viewing angle. | |
| double | getMinViewAngle () const noexcept |
| Get the minimum viewing angle. | |
| double | getMaxViewAngle () const noexcept |
| Get the maximum viewing angle. | |
| MapViewPreferences & | setViewAngle (double value, bool animated=false) noexcept |
| Set the viewing angle. | |
| MapViewPreferences & | setTiltAngle (double angleDegrees) noexcept |
| Set tilt angle in degrees. | |
| double | getTiltAngle () const noexcept |
| Get tilt angle in degrees. | |
| double | getRotationAngle () const noexcept |
| Get map rotation angle in degrees relative to north-south axis. | |
| MapViewPreferences & | setRotationAngle (double angle) noexcept |
| Get map rotation angle in degrees relative to north-south axis. | |
| LandmarkStoreCollectionRef | lmks () noexcept |
| Get access to the visibility settings for the landmark stores. | |
| MapViewRoutesCollectionRef | routes () noexcept |
| Get access to the collection of visible routes. | |
| PathCollectionRef | paths () noexcept |
| Get access to the collection of visible paths. | |
| MapViewOverlayCollectionRef | overlays () noexcept |
| Get access to the collection of visible overlays. | |
| MapViewMarkerCollectionsRef | markers () noexcept |
| Get access to the collections of visible markers. | |
| bool | getTrafficVisibility () const noexcept |
| Get traffic visibility. | |
| int | setTrafficVisibility (bool value) noexcept |
| Set traffic visibility. | |
| MapViewPreferences & | enableCursor (bool value) noexcept |
| Enable/Disable the cursor mode When the cursor is enabled map selection can be activated by calling setCursorScreenPosition The cursor is automatically disabled by MapView::startFollowingPosition. | |
| bool | isCursorEnabled () const noexcept |
| Test if cursor is enabled. | |
| MapViewPreferences & | enableCursorRender (bool value) noexcept |
| Enable/Disable the cursor rendering. | |
| bool | isCursorRenderEnabled () const noexcept |
| Test if cursor is enabled. | |
| bool | getNorthFixedFlag () const noexcept |
| Get the value of the NorthFixed flag. | |
| MapViewPreferences & | setNorthFixedFlag (bool value) noexcept |
| Set the value of the NorthFixed flag. | |
| MapViewPreferences & | setMapStyleByPath (const String &path, bool smoothTransition=false) noexcept |
| Set map view details by content path. | |
| MapViewPreferences & | setMapStyle (const DataBuffer &content, bool smoothTransition=false) noexcept |
| Set map view details by content. | |
| MapViewPreferences & | setMapStyle (const ContentStoreItem &style, bool smoothTransition=false) noexcept |
| Set map view details by ContentStoreItem. | |
| MapViewPreferences & | setMapStyleById (LargeInteger id, bool smoothTransition=false) noexcept |
| Set map view details by content id. | |
| const StringRef | getMapStylePath () const noexcept |
| Get the current view style content path See ContentStoreItem::getFileName(). | |
| LargeInteger | getMapStyleId () const noexcept |
| Get the current view style content id See ContentStoreItem::getId(). | |
| MapViewPreferences & | setBuildingsVisibility (EBuildingsVisibility option) noexcept |
| Set buildings visibility to specified option. | |
| EBuildingsVisibility | getBuildingsVisibility () const noexcept |
| Get buildings visibility option. | |
| MapViewPreferences & | updateCurrentStyleFromJson (const DataBuffer &data) |
| Update current style from json ( studio style editor use case ). | |
| const FollowPositionPreferencesRef | followPositionPreferences () const noexcept |
| Get follow position preferences. | |
| FollowPositionPreferencesRef | followPositionPreferences () noexcept |
| Get follow position preferences. | |
| bool | isMapSceneObjectVisible (const MapSceneObject &obj) const noexcept |
| Get the given map scene object visibility in current view. | |
| MapViewPreferences & | setMapSceneObjectVisibility (const MapSceneObject &obj, bool visible) noexcept |
| Set the given map scene object visibility in current view. | |
| MapViewPreferences & | setMapSceneObjectScaleFactor (const MapSceneObject &obj, float scaleFactor) noexcept |
| Set the given map scene object scale factor in current view. | |
| bool | GetMapSceneObjectScaleFactor (const MapSceneObject &obj) const noexcept |
| Get the given map scene object scale factor in current view. | |
| MapViewPreferences & | setDrawFPS (bool bEnable, const Xy &pos) noexcept |
| Enable/disable frames per second draw. | |
| bool | getDrawFPS () const noexcept |
| Get frames per second draw state. | |
| int | getMapDetailsQualityLevel () const noexcept |
| Get map details quality level. | |
| MapViewPreferences & | setMapDetailsQualityLevel (int level) noexcept |
| Set map details quality level. | |
| bool | isFastBrowsingEnabled () const noexcept |
| Get fast browsing status. | |
| MapViewPreferences & | enableFastBrowsingMode (bool enable) noexcept |
| Set fast browsing status. | |
| MapViewPreferences & | enableTouchGestures (int gestures, bool enable) noexcept |
| Enable / disable touch gestures. | |
| bool | isTouchGestureEnabled (ETouchGestures gesture) const noexcept |
| Check if touch gesture is enabled. | |
| int | getTouchGesturesStates () const noexcept |
| Get enabled touch gestures packed. | |
| MapViewPreferences & | setTouchGesturesStates (int enabledTouchGesturesBitfield) noexcept |
| Set enabled touch gestures packed. | |
| Rect | getFocusViewport () const noexcept |
| Get the map view focus viewport. | |
| MapViewPreferences & | setFocusViewport (const Rect &view) noexcept |
| Set the map view focus viewport. | |
| bool | getMapLabelsFading () const noexcept |
| Get the map labels fading state. | |
| MapViewPreferences & | setMapLabelsFading (bool enable) noexcept |
| Set the map labels continuous rendering. | |
| bool | getMapLabelsContinuousRendering () const noexcept |
| Get the map labels continuous rendering state. | |
| MapViewPreferences & | setMapLabelsContinuousRendering (bool enable) noexcept |
| Set the map labels fading. | |
| bool | disableFastLoading () const noexcept |
| Get the fast data loading disable state. | |
| MapViewPreferences & | setDisableFastLoading (bool disable) noexcept |
| Disable the fast data loading when moving camera. | |
| MapViewPreferences & | showMapScale (bool enable) noexcept |
| Enables or disables the map scale. | |
| bool | isMapScaleShown () const noexcept |
| Check if map scale is shown. | |
| MapViewPreferences & | setMapScalePosition (Rect rcPosition) noexcept |
| Sets the map position. | |
| Rect | getMapScalePosition () const noexcept |
| Gets the map position. | |
| MapViewPreferences & | setElevationAlphaFactor (float alphaFactor) noexcept |
| Sets the elevation alpha factor. | |
| float | getElevationAlphaFactor () const noexcept |
| Gets the elevation alpha factor. | |
MapViewPreferences object.
Implements share-read / write Api object over IMapViewPreferences.
|
inlinenoexcept |
Get the fast data loading disable state.
|
inlinenoexcept |
Enable/Disable the cursor mode When the cursor is enabled map selection can be activated by calling setCursorScreenPosition The cursor is automatically disabled by MapView::startFollowingPosition.
| [in] | value | True to enable the cursor |
|
inlinenoexcept |
Enable/Disable the cursor rendering.
| [in] | value | True to enable the cursor rendering |
|
inlinenoexcept |
Set fast browsing status.
| [in] | enable | true to enable, false to disable |
|
inlinenoexcept |
Enable / disable touch gestures.
| [in] | gestures | Packed ETouchGestures |
| [in] | enable | True to enable, false to disable |
|
inlinenoexcept |
Get follow position preferences.
|
inlinenoexcept |
Get follow position preferences.
|
inlinenoexcept |
Get buildings visibility option.
|
inlinenoexcept |
Get frames per second draw state.
|
inlinenoexcept |
Gets the elevation alpha factor.
|
inlinenoexcept |
Get the map view focus viewport.
The focus viewport is the view screen part containing the maximum map details. The coordinates are relative to view parent screen
The default value is the view whole viewport.
|
inlinenoexcept |
Get map details quality level.
|
inlinenoexcept |
Get the map labels continuous rendering state.
|
inlinenoexcept |
Get the map labels fading state.
|
inlinenoexcept |
Gets the map position.
|
inlinenoexcept |
Get the given map scene object scale factor in current view.
| [in] | obj | The map scene object |
|
inlinenoexcept |
Get the current view style content id See ContentStoreItem::getId().
If no style is set the function returns 0
|
inlinenoexcept |
Get the current view style content path See ContentStoreItem::getFileName().
|
inlinenoexcept |
Get the map view perspective.
|
inlinenoexcept |
Get the maximum viewing angle.
Maximum view angle is when the camera is looking directly toward the horizon
|
inlinenoexcept |
Get the minimum viewing angle.
Minimum view angle is when the camera is looking directly downward at the map
|
inlinenoexcept |
Get the value of the NorthFixed flag.
|
inlinenoexcept |
Get map rotation angle in degrees relative to north-south axis.
The value of 0 corresponds to north-up alignment
|
inlinenoexcept |
Get tilt angle in degrees.
The tilt angle is 90 - viewAngle
|
inlinenoexcept |
|
inlinenoexcept |
Get traffic visibility.
By default is true if current map style contains the traffic layer
|
inlinenoexcept |
Get the viewing angle.
|
inlinenoexcept |
Test if cursor is enabled.
|
inlinenoexcept |
Test if cursor is enabled.
|
inlinenoexcept |
Get fast browsing status.
|
inlinenoexcept |
Check if map scale is shown.
|
inlinenoexcept |
Get the given map scene object visibility in current view.
| [in] | obj | The map scene object |
|
inlinenoexcept |
Check if touch gesture is enabled.
| [in] | gesture | The touch gesture |
|
inlinenoexcept |
Get access to the visibility settings for the landmark stores.
|
inlinenoexcept |
Get access to the collections of visible markers.
|
inlinenoexcept |
Get access to the collection of visible overlays.
|
inlinenoexcept |
Get access to the collection of visible paths.
|
inlinenoexcept |
Get access to the collection of visible routes.
|
inlinenoexcept |
Set buildings visibility to specified option.
| [in] | option | The buildings visibility option |
|
inlinenoexcept |
Disable the fast data loading when moving camera.
| [in] | disable | True to disable, false to enable |
|
inlinenoexcept |
Enable/disable frames per second draw.
| [in] | bEnable | True to enable frames per second draw |
| [in] | pos | The position of the frames per second draw |
|
inlinenoexcept |
Sets the elevation alpha factor.
| [in] | alphaFactor | - float value between 0 and 1 to set the elevation shadows opacity |
|
inlinenoexcept |
Set the map view focus viewport.
If view is an empty viewport the focus will be reset to whole view
| [in] | view | The focus viewport |
|
inlinenoexcept |
Set map details quality level.
| [in] | level | Map details quality level, see EMapDetailsQualityLevel |
|
inlinenoexcept |
Set the map labels fading.
| [in] | enable | True to enable, false to disable |
|
inlinenoexcept |
Set the map labels continuous rendering.
| [in] | enable | True to enable, false to disable |
|
inlinenoexcept |
Sets the map position.
| [in] | rcPosition | Rectangle position related to parent view |
|
inlinenoexcept |
Set the given map scene object scale factor in current view.
| [in] | obj | The map scene object |
| [in] | scaleFactor | should be between 0.1f and 5.0f. If set to 0, the object scale factor will be used. |
|
inlinenoexcept |
Set the given map scene object visibility in current view.
| [in] | obj | The map scene object |
| [in] | visible | True to show the object |
|
inlinenoexcept |
Set map view details by ContentStoreItem.
| [in] | style | Style content |
| [in] | smoothTransition | Enables a smooth transition between old and new style |
|
inlinenoexcept |
Set map view details by content.
| [in] | content | Style content |
| [in] | smoothTransition | Enables a smooth transition between old and new style |
|
inlinenoexcept |
Set map view details by content id.
| [in] | id | Content id See ContentStoreItem::getId() obtained from content store styles list |
| [in] | smoothTransition | Enables a smooth transition between old and new style |
|
inlinenoexcept |
Set map view details by content path.
| [in] | path | Content path See ContentStoreItem::getFileName() obtained from content store styles list |
| [in] | smoothTransition | Enables a smooth transition between old and new style |
|
inlinenoexcept |
Set the map view perspective.
| [in] | perspective | The map perspective. |
| [in] | animation | The operation animation type. Default is none |
|
inlinenoexcept |
Set the value of the NorthFixed flag.
| [in] | value | The NorthFixed flag value |
|
inlinenoexcept |
Get map rotation angle in degrees relative to north-south axis.
The value of 0 corresponds to north-up alignment
| [in] | angle | The rotation angle |
|
inlinenoexcept |
Set tilt angle in degrees.
| [in] | angleDegrees | The tilt angle in degrees. |
The tilt angle is 90 - viewAngle
|
inlinenoexcept |
Set enabled touch gestures packed.
| [in] | enabledTouchGesturesBitfield | Packed ETouchGestures |
|
inlinenoexcept |
Set traffic visibility.
Will return error::KNotFound if current map style doesn't contain the traffic layer
| [in] | value | True to show traffic |
|
inlinenoexcept |
Set the viewing angle.
| [in] | value | The view angle |
| [in] | animated | The animation flag |
|
inlinenoexcept |
Enables or disables the map scale.
| [in] | enable | True if enable, false if disable |
|
inline |
Update current style from json ( studio style editor use case ).
| [in] | data | The json data buffer |