AnsweredAssumed Answered

Basemap Gallery - not loading selected basemap

Question asked by mmullan on Jun 4, 2018
Latest reply on Jun 4, 2018 by rscheitlin

I have a web map that I load from its portal id and after it loads I create a basemapGallery. The basemap gallery shows up correctly but any time I choose a different basemap, the basemap for the map goes blank/white background and only the graphics appear on the map. Any idea why?


var webmap = new WebMap({ portalItem: { id: "xxxx" }});

webMapView = new MapView({ container: "MapDiv", map: webmap, center: [lat, long], zoom: zoom});


var basemapGallery = new BasemapGallery({ view: webMapView, container: document.createElement("div") });
var bgExpand = new Expand({
view: webMapView,
content: basemapGallery.container,
expandIconClass: "esri-icon-basemap"
webMapView.ui.add(bgExpand, { position: "top-left" });