styleString property

String styleString
final

A Gebeta GL style document defining the map's appearance. The style document specification is at https://maplibre.org/maplibre-style-spec. A short introduction can be found in the documentation of the gebeta_gl library. The following formats are supported:

  1. Passing the URL of the map style. This should be a custom map style served remotely using a URL that start with 'http(s)://'
  2. Passing the style as a local asset. Create a JSON file in the assets and add a reference in pubspec.yml. Set the style string to the relative path for this asset in order to load it into the map.
  3. Passing the style as a local file. create an JSON file in app directory (e.g. ApplicationDocumentsDirectory). Set the style string to the absolute path of this JSON file.
  4. Passing the raw JSON of the map style. This is only supported on Android.

Implementation

final String styleString;