MapContentSettings class abstract

Provides settings regarding map data which are applied globally to all map views.

The settings can already be changed before a map view instance is created.

Constructors

MapContentSettings()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

configureVehicleRestrictionFilter(TransportMode transportMode, TruckSpecifications truckSpecifications, List<HazardousMaterial>? hazardousMaterials, TunnelCategory? tunnelCategory) → void
Configure a filter for MapFeatures.vehicleRestrictions to show only the restrictions matching the specified criteria when the feature is enabled.
configureVehicleRestrictionFilterWithTransportSpecification(TransportSpecification transportSpecs) → void
Configures a filter for MapFeatures.vehicleRestrictions to show only the restrictions matching the transport specifications when the feature is enabled.
filterTrafficIncidents(List<TrafficIncidentType> trafficIncidents) → void
Filters the displayed traffic incidents so that only the ones applicable to the specified criteria are shown when general display of traffic incidents is enabled.
resetPoiCategoriesVisibility() → void
Resets POI categories visibility to their default state.
resetTrafficIncidentFilter() → void
Removes all filters regarding Traffic Incidents so that all incidents will be displayed, when the display of Traffic Incidents is enabled using MapScene.enableFeatures with MapFeatures.trafficIncidents.
resetTrafficRefreshPeriod() → void
Resets the traffic data (both flow and incidents) refresh period so the default traffic information validity time and the refresh period derived from the refresh period of the traffic server is used.
resetVehicleRestrictionFilter() → void
Removes all filters regarding vehicle restrictions so that all restrictions will be displayed, when the display of vehicle restrictions is enabled by enabling feature using MapScene.enableFeatures with MapFeatures.vehicleRestrictions and setting layer visibility using MapScene.setLayerVisibility.
setPoiCategoriesVisibility(List<String> categoryIds, VisibilityState visibility) → void
Sets visibility for embedded carto POI categories (points of interest that are visible on the map, by default).
setTrafficRefreshPeriod(Duration value) → void
Sets the traffic data refresh period for both MapFeatures.trafficFlow and MapFeatures.trafficIncidents.