Skip to main content
1 of 2
Stephen Lead
  • 21.3k
  • 19
  • 117
  • 246

How to change the default basemap in a Web AppBuilder app via code?

I've created an app in the Web AppBuilder v2.0, running at http://my-PC:3344/webappbuilder, and included the standard [BaseMap Widget][1].

I downloaded the resulting app and deployed it using IIS at C:\inetpub\wwwroot\MyApp. I've subsequently made some changes by editing the JS files directly in an IDE (not via the Web AppBuilder UI) and it's all working fine.

Now I'd like to change the default basemap which is shown when the app opens.

  • \MyApp\config.json lists the BaseMapGallery widget
  • \MyApp\configs\BasemapGallery\config_BaseMap Gallery.json lists the available basemaps
  • neither file seems to configure the default basemap

Which files should I edit to change the default basemap? [1]: https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-basemap.htm

Stephen Lead
  • 21.3k
  • 19
  • 117
  • 246