MapFeatures
public struct MapFeatures
Holds constants for map features, to be used with
MapScene.enableFeatures(...) and MapScene.disableFeatures(...).
See MapFeatureModes for constants representing feature modes.
-
Simple 3D representation of buildings.
Supports only one mode:
MapFeatureModes.extrudedBuildingsAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.By default, extruded buildings are enabled on all compatible map schemes.
Declaration
Swift
public static let extrudedBuildings: String -
The 2D footprint of buildings.
Supports only one mode:
MapFeatureModes.buildingFootprintsAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.By default, building footprints are enabled on all compatible map schemes.
Declaration
Swift
public static let buildingFootprints: String -
Traffic flow speed. An online connection is required for the traffic flow to be shown.
If the offline-mode is enabled for offline maps usage, the live traffic flow can still be shown in offline mode by enabling pass-through feature for traffic flow on
sdk.core.engine.SDKNativeEngine. Seesdk.core.engine.SDKNativeEngine.pass_through_featuresfor details.Supported modes:
MapFeatureModes.trafficFlowJapanWithoutFreeFlow,MapFeatureModes.trafficFlowWithFreeFlow,MapFeatureModes.trafficFlowWithoutFreeFlow.
Default mode is
MapFeatureModes.trafficFlowWithFreeFlow.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let trafficFlow: String -
Traffic incidents. An online connection is required for the traffic incidents to be shown.
If the offline-mode is enabled for offline maps usage, the live traffic incidents can still be shown in offline mode by enabling pass-through feature for traffic incidents on
sdk.core.engine.SDKNativeEngine. Seesdk.core.engine.SDKNativeEngine.pass_through_featuresfor details.Supports only one mode:
MapFeatureModes.trafficIncidentsAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let trafficIncidents: String -
Traffic lights.
Supports only one mode:
MapFeatureModes.trafficLightsAllNot supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight.By default, traffic lights are enabled on all compatible map schemes.
Declaration
Swift
public static let trafficLights: String -
Vehicle restrictions. Requires map version 25 as minimum. If old map data is stored on disk, it might require updating using
MapUpdater.Supported modes:
MapFeatureModes.vehicleRestrictionsActive,MapFeatureModes.vehicleRestrictionsActiveAndInactiveandMapFeatureModes.vehicleRestrictionsActiveAndInactiveDifferentiated.Default mode when enabled is
MapFeatureModes.vehicleRestrictionsActiveAndInactive.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let vehicleRestrictions: String -
Safety and speed cameras.
Supports only one mode:
MapFeatureModes.safetyCamerasAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let safetyCameras: String -
Displays 3D landmarks on the map.
Please note: Enabling 3D landmarks with 3D terrain may result in instances where landmarks sink into or float above the terrain.
Supported modes:
MapFeatureModes.landmarksTextured,MapFeatureModes.landmarksGrayscaleandMapFeatureModes.landmarksTextureless.Default mode is
MapFeatureModes.landmarksGrayscale.By default, 3D landmarks are enabled on all compatible map schemes.
Not supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.Declaration
Swift
public static let landmarks: String -
City areas designated as environmental zones, which empose limitations on the type of vehicles that are allowed to enter such areas.
Supports only one mode:
MapFeatureModes.environmentalZonesAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let environmentalZones: String -
City areas designated as congestion zones (or congestion charge zones), which impose fees on entering such areas.
Supports only one mode:
MapFeatureModes.congestionZonesAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let congestionZones: String -
City areas designated as low speed zones. Only available when Japan map is used.
Supports only one mode:
MapFeatureModes.lowSpeedZonesAll.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let lowSpeedZones: String -
Show elevation topography.
Supported modes:
MapFeatureModes.terrainHillshade,MapFeatureModes.terrain3d.MapFeatureModes.terrainHillshadeis only supported for schemesMapScheme.normalDay,MapScheme.normalNight,MapScheme.liteDay,MapScheme.liteNight,MapScheme.logisticsDayandMapScheme.logisticsNight,MapScheme.topoDayandMapScheme.topoNight.Default mode is
MapFeatureModes.terrainHillshadefor the supporting schemes.By default, terrain is disabled, except for
MapScheme.topoDayandMapScheme.topoNight.Note that this feature has performance implications, with extra data use and impact on frame rate. If performance is a concern, this feature can be disabled from the application side when loading the map scene.
Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public static let terrain: String -
Toggles the display of public transit lines for systems like subway, tram, train, monorail, and ferry, based on the selected mode.
Supported modes:
MapFeatureModes.publicTransitAll,MapFeatureModes.publicTransitAsia.MapFeatureModes.publicTransitAsiais supported only when credentials enabled for the enriched Japan map are used.Public transit is disabled by default for all map schemes when using Rest-of-World map data. When using enriched Japan map data, public transit is enabled by default with
MapFeatureModes.publicTransitAsiaon normal, lite and topo schemes (including their hybrid variants) and disabled by default on logistics schemes.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
Declaration
Swift
public static let publicTransit: String -
Show or hide road exit labels, if available.
Supported modes:
MapFeatureModes.roadExitLabelsNumbersOnly,MapFeatureModes.roadExitLabelsAllDefault mode is
MapFeatureModes.roadExitLabelsNumbersOnly.Road exit labels are enabled by default with
MapFeatureModes.roadExitLabelsNumbersOnlyon normal, lite and topo schemes and withMapFeatureModes.roadExitLabelsAllon logistics schemes. Note that topo schemes are only available in the HERE SDK Navigate variant.Not supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight.Declaration
Swift
public static let roadExitLabels: String -
Shadows for all building types (extruded buildings and landmarks).
Supports only one mode:
MapFeatureModes.shadowsAll.A
ShadowQualitymust be set on the MapContext through a MapView or the feature has no effect.Shadows have a performance impact and should be considered only for devices with sufficient performance.
Not supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process. By default, this map feature is not enabled.
Declaration
Swift
public static let shadows: String -
Ambient occlusion effect for 3D geometries (extruded buildings and landmarks).
Supports only one mode:
MapFeatureModes.ambientOcclusionAll.This visual effect has a performance impact and should be considered only for devices with sufficient performance.
Not supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process. By default, this map feature is not enabled.
Declaration
Swift
public static let ambientOcclusion: String -
Show or hide contour lines on the map to represent elevation changes.
Supports only one mode:
MapFeatureModes.contoursAllNot supported for
MapScheme.satellite,MapScheme.roadNetworkDay,MapScheme.roadNetworkNightand all hybrid schemes:MapScheme.hybridDayMapScheme.hybridNight,MapScheme.liteHybridDayMapScheme.liteHybridNight,MapScheme.logisticsHybridDayandMapScheme.logisticsHybridNight.Contours are enabled by default on topo schemes and disabled by default on other schemes.
Declaration
Swift
public static let contours: String -
Show or hide truck preferred road
Supported modes:
MapFeatureModes.truckPreferredRoadsAllNot supported for
MapScheme.satellite,MapScheme.roadNetworkDayandMapScheme.roadNetworkNight. By default, this map feature is not enabled.Declaration
Swift
public static let truckPreferredRoads: String