ola_map_view_flutter library
Interactive Ola Maps view, controller, and overlay helpers.
Import package:ola_maps/ola_maps.dart from apps. Use OlaMapView for the
map and Olamaps.instance for Places / Routing HTTP APIs.
Classes
- OlaCameraPosition
- Camera target plus zoom / bearing / tilt.
- OlaLatLng
- Geographic coordinate used by the Ola Maps SDK.
- OlaLineType
- Line styles accepted by polylines and bezier curves.
- OlaMapController
- Overlay and camera API for a single OlaMapView instance.
- OlaMapsLanguage
- ISO 639-1 language codes supported by Ola Maps Places, Routing, Geocoding, and Maps APIs. Defaults to en when omitted.
- OlaMapView
- Native (Android / iOS) or web map surface backed by the Ola Maps SDKs.
- OlaRoutingService
- Directions, distance matrix, and fleet helpers for Ola Maps Routing.
Constants
- kOlaMapsBackendProxyPath → const String
- Path marker used by apps that hide the Ola API key behind their own backend.
- kOlaMapsDefaultThreeDTileset → const String
- 3D tileset used by the Ola Maps Web SDK.
- kOlaMapsDefaultTileUrl → const String
-
Default vector style used by Ola Maps (
OlaMapService/ Web SDK). - kOlaMapsWebSdkUrl → const String
-
CDN URL for
olamaps-web-sdk(UMD). The Flutter web plugin also loads this automatically if the host page did not include the script tag.
Functions
-
canCreateOlaMapView(
{required String apiKey, required String tileUrl}) → bool - The map can start with a real dashboard key or a backend tile proxy.
-
formatOlaMapError(
Object error) → String - Turns native / HTTP failures into a short message for OlaMapView.onMapError.
-
isOlaMapsApiKeyConfigured(
String apiKey) → bool -
Returns
falsefor empty or placeholder dashboard keys. -
olaMapsBackendProxyBase(
String? tileUrl) → String? -
{origin}/ola-maps/proxyderived from a tile URL, or null if unused. -
usesOlaMapsBackendProxy(
String? tileUrl) → bool -
True when
tileUrlis served through an app backend that hides the API key. Matches AndroidOlaMapsHttpProxy.usesBackendProxy.