Skip to main content
Tweeted twitter.com/StackGIS/status/743558912998277120
mention local layer widget
Source Link
Stephen Lead
  • 21.3k
  • 19
  • 117
  • 246

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

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]

Edit: I am using the https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-basemap.htmLocalLayer widget to specify the map layers manually

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

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

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?

Edit: I am using the LocalLayer widget to specify the map layers manually

Source Link
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