Skip to content

Commit

Permalink
dark basemap
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Aug 22, 2024
1 parent c1ca571 commit 6c9867b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,9 @@ function App() {

onMount(() => {
map = new maplibregl.Map({
container: "map", // container id
style: "https://demotiles.maplibre.org/style.json", // style URL
center: [0, 0], // starting position [lng, lat]
zoom: 1, // starting zoom
container: "map",
style:
"https://api.protomaps.com/styles/v3/black.json?key=5b9c1298c2eef269",
maplibreLogo: true,
});

Expand Down Expand Up @@ -144,7 +143,7 @@ function App() {
type: "fill",
source: "covering",
paint: {
"fill-color": "steelblue",
"fill-color": "yellow",
"fill-opacity": 0.5,
},
});
Expand All @@ -153,7 +152,7 @@ function App() {
type: "line",
source: "covering",
paint: {
"line-color": "steelblue",
"line-color": "yellow",
},
});
});
Expand Down

0 comments on commit 6c9867b

Please sign in to comment.