prefetchAroundLocationWithRadius abstract method

  1. @Deprecated("Will be removed in v4.27.0. Please use [PolygonPrefetcher.prefetch] instead.")
void prefetchAroundLocationWithRadius(
  1. GeoCoordinates currentLocation,
  2. double? radiusInMeters
)

Prefetches map data within a user-defined circular area around a given location.

The radius, specified in meters, must be between 1 km and 50 km. If null is passed as the radius, a default value of 2 km is used. It is recommended to call this method once before starting navigation to ensure a smooth experience.

To control list of map content features for area prefetch, use LayerConfiguration.enabledFeatures.

  • currentLocation The center of the circle to prefetch data within.

  • radiusInMeters The radius of the circle to prefetch data within.

Implementation

@Deprecated("Will be removed in v4.27.0. Please use [PolygonPrefetcher.prefetch] instead.")

void prefetchAroundLocationWithRadius(GeoCoordinates currentLocation, double? radiusInMeters);