Hello! Recently I´ve migrated my project to use ES Modules to import arcgis js api. My problem is with BasemapToggle widget, it seems to be working correctly but it doesn´t load the images under /assets/esri/images/basemap and display blank divs. (images attached)My project url which I am using Arcgis maps is:http://localhost/first/secondUnder devTools inspection I´ve noticed that the url generated is: background-image: url("http://localhots/first/assets/esri/images/basemap/hybrid.jpg")If I change manually to the below, the images load correctly: background-image: url("http://localhots/assets/esri/images/basemap/hybrid.jpg")
My assestsPath is: config.assetsPath = '/assets';
Any help would be appreciated!
Thanks.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.