Skip to content

Commit c7ba721

Browse files
committed
alwqas use roadmap imagery, disable satellite for now
1 parent 275ae91 commit c7ba721

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/@lib/map.dhtml

+2-6
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@
44
import { init } from '/@util/leaflet.js'
55
</script>
66

7-
<div @name="maps" :data-theme="theme || router.state.theme || 'system'" id="map">
7+
<div @name="maps" :data-theme="router.state.theme || 'system'" id="map">
88

99
<script>
1010
router = router
11-
theme = undefined
1211

1312
mounted() {
1413
router.on('theme resizable', this.update)
1514
nueStateChange(this.update)
16-
init(this.root, router.state).then(data => {
17-
// currently prevent satellite from using dark mode...
18-
if (data.tile == 'satellite') this.update({ theme: 'light' })
19-
})
15+
init(this.root, router.state)
2016
}
2117
</script>
2218
</div>

src/@util/leaflet.js

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export async function init(el, { q, z, pb }) {
2929
if (marker) data.markers = [marker]
3030
}
3131

32+
data.tile = 'roadmap' // TODO: re-enable satellite in the future again.
33+
3234
/* leaflet */
3335

3436
const map = L.map(el, {

0 commit comments

Comments
 (0)