File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function handleModeChange() {
2626 lightModeCss . disabled = isDarkMode ;
2727 toggleModeEl . icon = isDarkMode ? "moon" : "brightness" ;
2828 document . body . className = isDarkMode ? "calcite-mode-dark" : "" ;
29-
29+ mapEl . basemap = isDarkMode ? "dark-gray" : "gray" ;
3030 document . querySelectorAll ( `.calcite-mode-${ isDarkMode ? "light" : "dark" } ` ) . forEach ( node =>
3131 node . classList . replace ( `calcite-mode-${ isDarkMode ? "light" : "dark" } ` , `calcite-mode-${ mode } ` )
3232 ) ;
Original file line number Diff line number Diff line change 1111 <!-- ArcGIS Maps SDK for JavaScript imports -->
1212 < script src ="https://js.arcgis.com/4.32/ "> </ script >
1313 < link id ="jsapi-mode-light " rel ="stylesheet " href ="https://js.arcgis.com/4.32/esri/themes/light/main.css " />
14- < link disabled id ="jsapi-mode-dark " rel ="stylesheet " href ="https://js.arcgis.com/4.32/esri/themes/dark/main.css " />
1514 < script type ="module " src ="https://js.arcgis.com/map-components/4.32/arcgis-map-components.esm.js "> </ script >
1615
1716 <!-- Demo imports -->
2928 Disable animation
3029 < calcite-switch id ="animationControl "> </ calcite-switch >
3130 </ calcite-label >
32-
33-
3431 </ calcite-navigation >
3532
3633 < arcgis-map id ="map " item-id ="03c4fa085ece410dadd9aa6e44130508 ">
You can’t perform that action at this time.
0 commit comments