BasemapGalleryController constructor

BasemapGalleryController({
  1. GeoModel? geoModel,
})

Creates a BasemapGalleryController with default basemaps from ArcGIS Online's developer basemaps. Provide a GeoModel to automatically apply the BasemapGalleryController.currentBasemap to the respective map or scene.

These basemaps are secured and typically require an API key or named-user authentication.

Implementation

BasemapGalleryController({this._geoModel}) : _portal = null {
  _initFromGeoModel();
  unawaited(_populateDefaultBasemaps());
}