styleString property
A VietMapGL style document defining the map's appearance. A short introduction can be found in the documentation of the vietmap_gl library. The following formats are supported:
- Passing the URL of the map style. This should be a custom map style served remotely using a URL that start with 'http(s)://'
- Passing the style as a local asset. Create a JSON file in the
assets
and add a reference inpubspec.yml
. Set the style string to the relative path for this asset in order to load it into the map. - 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.
- Passing the raw JSON of the map style. This is only supported on Android.
Implementation
final String styleString;