publicTransit property

String publicTransit
final

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.publicTransitAsia is 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.publicTransitAsia on normal, lite and topo schemes (including their hybrid variants) and disabled by default on logistics schemes.

Not supported for MapScheme.satellite, MapScheme.roadNetworkDay and MapScheme.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.

Implementation

static final String publicTransit = "public transit";