OlaMapsTiles class
Static maps, style URLs, and 3D tileset helpers.
Constructors
- OlaMapsTiles({required String apiKey, OlaMapsHttp? http})
-
Creates a tiles client. Pass
httpto share language defaults.
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
-
listStyles(
{String? requestId, String? correlationId}) → Future< List< MapStyleInfo> > - Styles published for this API key.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
staticMapByBounds(
{required double minLongitude, required double minLatitude, required double maxLongitude, required double maxLatitude, int width = 800, int height = 600, String format = 'png', String styleName = lightStandard, Object? language, bool dark = false, List< StaticMapMarker> markers = const [], String? path, String? requestId, String? correlationId}) → Future<Uint8List> - Static map image fitted to a bounding box.
-
staticMapByCenter(
{required double longitude, required double latitude, required double zoom, int width = 800, int height = 600, String format = 'png', String styleName = lightStandard, Object? language, bool dark = false, List< StaticMapMarker> markers = const [], String? path, String? requestId, String? correlationId}) → Future<Uint8List> - Static map image centered on a coordinate.
-
staticMapByPath(
{required String path, int width = 800, int height = 600, String format = 'png', String styleName = lightStandard, Object? language, bool dark = false, List< StaticMapMarker> markers = const [], String? requestId, String? correlationId}) → Future<Uint8List> -
Static map image fitted to a polyline
path. -
styleName(
{Object? language, bool dark = false, String? baseStyle}) → String -
Style id for
language, optionallydark. -
styleUrl(
{Object? language, bool dark = false, String? baseStyle}) → String -
Vector style JSON URL for Dynamic Maps. Non-English languages use
default-light-standard-{code}(e.g.default-light-standard-ml). -
tileset3d(
{String? requestId, String? correlationId}) → Future< Map< String, dynamic> > - 3D tileset JSON used by the Web SDK.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- darkStandard → const String
-
Dark
default-dark-standardstyle id. - lightStandard → const String
-
Light
default-light-standardstyle id.