Skip to content

Commit e109874

Browse files
committed
fix: add default map style
1 parent fe260ed commit e109874

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

docs/getting-started/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This is only possible in a client-side environment. You should either :
2727
</template>
2828
2929
<script setup>
30-
const style = 'https://api.maptiler.com/maps/streets/style.json?key=cQX2iET1gmOW38bedbUh';
30+
const style = 'https://demotiles.maplibre.org/style.json';
3131
const center = [-1.559482, 47.21322];
3232
const zoom = 8;
3333
</script>
@@ -45,7 +45,7 @@ const MglNavigationControl = defineClientComponent(() => {
4545
return import('@indoorequal/vue-maplibre-gl').then(m => m.MglNavigationControl)
4646
})
4747

48-
const style = 'https://api.maptiler.com/maps/streets/style.json?key=cQX2iET1gmOW38bedbUh';
48+
const style = 'https://demotiles.maplibre.org/style.json';
4949
const center = [-1.559482, 47.21322];
5050
const zoom = 8;
5151
</script>

package-lock.json

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"docs:preview": "vitepress preview docs"
3838
},
3939
"dependencies": {
40-
"@indoorequal/vue-maplibre-gl": "^8.0.0",
41-
"maplibre-gl": "^5.0.0"
40+
"@indoorequal/vue-maplibre-gl": "^8.3.0",
41+
"maplibre-gl": "^5.2.0"
4242
},
4343
"devDependencies": {
4444
"@nuxt/devtools": "latest",

playground/pages/map/map-basic.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</template>
1010

1111
<script setup>
12-
const style = 'https://api.maptiler.com/maps/streets/style.json?key=cQX2iET1gmOW38bedbUh';
12+
const style = 'https://demotiles.maplibre.org/style.json';
1313
const center = [-1.559482, 47.21322];
1414
const zoom = 8;
1515

playground/pages/map/map.client.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
22
<MglMap
3+
map-style="https://demotiles.maplibre.org/style.json"
34
:center="center"
45
:zoom="zoom"
56
>

0 commit comments

Comments
 (0)