ContentType
public enum ContentType : UInt32, CaseIterable, Codable
Type of the map content to be picked.
-
Map items added through a
MapScenelikeMapMarker,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(...)withMapFeatures.trafficIncidents. - Vehicle restrictions are only available for the Navigate license.
Vehicle restrictions are enabled using
MapScene.enableFeatures(...)withMapFeatures.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,PolygonDataSourceand layers.Declaration
Swift
case customLayerData