MapFeatureModes

public struct MapFeatureModes

Holds constants for map feature modes, to be used with MapScene.enableFeatures(...).

Use MapFeatureModes.defaultMode to enable a feature with its default mode.

Note: The default mode is defined by the currently loaded map scene configuration and may vary per MapScheme. The currently active features and modes can be inspected using MapScene.getActiveFeatures(...) after the scene is loaded.

See MapFeatures for constants representing the feature names.

  • Enables the default mode of a map feature. Can be used with any map feature.

    Declaration

    Swift

    public static let defaultMode: String
  • All building footprints are shown.

    Declaration

    Swift

    public static let buildingFootprintsAll: String
  • All congestion zones are shown.

    Declaration

    Swift

    public static let congestionZonesAll: String
  • All extruded buildings are shown.

    Declaration

    Swift

    public static let extrudedBuildingsAll: String
  • All environmental zones are shown.

    Declaration

    Swift

    public static let environmentalZonesAll: String
  • All low speed zones are shown.

    Declaration

    Swift

    public static let lowSpeedZonesAll: String
  • Only available when Japan map is used.

    Traffic flow shows green lines depending on the region.

    In Japan green lines will not be shown, as if the MapFeatureModes.trafficFlowWithoutFreeFlow were used.

    In rest of the world, green lines will be shown, as if the MapFeatureModes.trafficFlowWithFreeFlow were used.

    Declaration

    Swift

    public static let trafficFlowJapanWithoutFreeFlow: String
  • Traffic flow shows green lines when there is no traffic congestion.

    Declaration

    Swift

    public static let trafficFlowWithFreeFlow: String
  • Traffic flow does not show green lines when there is no traffic congestion.

    Declaration

    Swift

    public static let trafficFlowWithoutFreeFlow: String
  • All available traffic incidents are shown.

    Declaration

    Swift

    public static let trafficIncidentsAll: String
  • All available traffic lights are shown.

    Declaration

    Swift

    public static let trafficLightsAll: String
  • 3D landmarks are textured.

    Declaration

    Swift

    public static let landmarksTextured: String
  • 3D landmarks are textured with grayscale filter.

    Declaration

    Swift

    public static let landmarksGrayscale: String
  • 3D landmarks have solid color.

    Declaration

    Swift

    public static let landmarksTextureless: String
  • Both active and inactive time-based restrictions are shown.

    Declaration

    Swift

    public static let vehicleRestrictionsActiveAndInactive: String
  • Both active and inactive restrictions are shown, but inactive time-based restrictions are shown as faded.

    Declaration

    Swift

    public static let vehicleRestrictionsActiveAndInactiveDifferentiated: String
  • Inactive time-based restrictions are not shown.

    Declaration

    Swift

    public static let vehicleRestrictionsActive: String
  • All types of safety cameras are shown. Includes speed, red light, red light + speed, bus lane, distance and speed section cameras.

    Declaration

    Swift

    public static let safetyCamerasAll: String
  • Topography-shading is shown.

    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 terrainHillshade: String
  • Topography-shading is shown on 3d terrain.

    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 terrain3d: String
  • Line geometry for all available public transit systems is shown; including subway, tram, train, monorail, ferry and more.

    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 publicTransitAll: String
  • Line geometry for selected public transit systems is shown: subway lines in Japan. Only available when Japan map is used.

    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 publicTransitAsia: String
  • Road exit labels are shown with numbers, if available.

    Declaration

    Swift

    public static let roadExitLabelsNumbersOnly: String
  • Road exit labels are shown with numbers and names, if available.

    Declaration

    Swift

    public static let roadExitLabelsAll: String
  • Shadows are shown for extruded buildings and landmarks.

    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 shadowsAll: String
  • Ambient occlusion effect is shown for extruded buildings and landmarks.

    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 ambientOcclusionAll: String
  • Contour lines indicating representing elevation changes are shown.

    Declaration

    Swift

    public static let contoursAll: String
  • Display truck preferred roads

    Declaration

    Swift

    public static let truckPreferredRoadsAll: String