ContentType

public enum ContentType : UInt32, CaseIterable, Codable

Type of the map content to be picked.

  • Map items added through a MapScene like MapMarker, MapPolyline, MapPolygon.

    Declaration

    Swift

    case mapItems = 0
  • Pickable map content currently consists of:

    • Embedded carto POI markers that by default are available on the map.
    • Traffic incidents that are visible when they are enabled using MapScene.enableFeatures(...) with MapFeatures.trafficIncidents.
    • Vehicle restrictions are only available for the Navigate license. Vehicle restrictions are enabled using MapScene.enableFeatures(...) with MapFeatures.VEHICLE_RESTRICTIONS. Please note that the vehicle restriction line marking the affected street is pickable and not the restriction icon itself. Only visible POIs, traffic incidents and vehicle restrictions lines can be picked, i.e. only those categories that are not hidden and those that are not covered by any custom marker.

    Declaration

    Swift

    case mapContent
  • Custom user map content added using custom datasources e.g. LineDataSource, PolygonDataSource and layers.

    Declaration

    Swift

    case customLayerData