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() {
26
26
lightModeCss . disabled = isDarkMode ;
27
27
toggleModeEl . icon = isDarkMode ? "moon" : "brightness" ;
28
28
document . body . className = isDarkMode ? "calcite-mode-dark" : "" ;
29
-
29
+ mapEl . basemap = isDarkMode ? "dark-gray" : "gray" ;
30
30
document . querySelectorAll ( `.calcite-mode-${ isDarkMode ? "light" : "dark" } ` ) . forEach ( node =>
31
31
node . classList . replace ( `calcite-mode-${ isDarkMode ? "light" : "dark" } ` , `calcite-mode-${ mode } ` )
32
32
) ;
Original file line number Diff line number Diff line change 11
11
<!-- ArcGIS Maps SDK for JavaScript imports -->
12
12
< script src ="https://js.arcgis.com/4.32/ "> </ script >
13
13
< 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 " />
15
14
< script type ="module " src ="https://js.arcgis.com/map-components/4.32/arcgis-map-components.esm.js "> </ script >
16
15
17
16
<!-- Demo imports -->
29
28
Disable animation
30
29
< calcite-switch id ="animationControl "> </ calcite-switch >
31
30
</ calcite-label >
32
-
33
-
34
31
</ calcite-navigation >
35
32
36
33
< arcgis-map id ="map " item-id ="03c4fa085ece410dadd9aa6e44130508 ">
You can’t perform that action at this time.
0 commit comments