forked from MapComplete/MapComplete
Add sunny theme for protomaps
This commit is contained in:
parent
c3634edc6e
commit
94d8b18166
4 changed files with 3508 additions and 2 deletions
|
@ -1,4 +1,22 @@
|
|||
<script lang="ts">
|
||||
import MaplibreMap from "./Map/MaplibreMap.svelte"
|
||||
import { UIEventSource } from "../Logic/UIEventSource"
|
||||
import { MapLibreAdaptor } from "./Map/MapLibreAdaptor"
|
||||
import { Map as MlMap } from "maplibre-gl"
|
||||
import { AvailableRasterLayers } from "../Models/RasterLayers"
|
||||
import { QueryParameters } from "../Logic/Web/QueryParameters"
|
||||
|
||||
const map = new UIEventSource<MlMap>(undefined)
|
||||
const mla = new MapLibreAdaptor(map, {
|
||||
location: new UIEventSource<{ lon: number; lat: number }>({
|
||||
lon: 3.1929, lat: 51.2190
|
||||
}),
|
||||
zoom: UIEventSource.asFloat(QueryParameters.GetQueryParameter("z", 13+"")),
|
||||
rasterLayer: new UIEventSource(AvailableRasterLayers.globalLayers.at(-1))
|
||||
})
|
||||
</script>
|
||||
|
||||
No tests
|
||||
<div class="w-full h-screen">
|
||||
<MaplibreMap {map} />
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue