Skip to content

Commit

Permalink
Auto-import Maplibre CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Gugustinette committed Jul 29, 2024
1 parent 4ada752 commit 8c19be3
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Theme } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import './custom.css'
import 'maplibre-gl/dist/maplibre-gl.css'

export default {
extends: DefaultTheme
Expand Down
2 changes: 0 additions & 2 deletions docs/getting-started/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ This is only possible in a client-side environment. You should either :
:map-style="style"
:center="center"
:zoom="zoom"
:attributionControl="false"
>
<MglNavigationControl />
</MglMap>
Expand Down Expand Up @@ -55,7 +54,6 @@ const zoom = 8;
:map-style="style"
:center="center"
:zoom="zoom"
:attributionControl="false"
height="500px"
>
<MglNavigationControl />
Expand Down
1 change: 0 additions & 1 deletion playground/pages/map/map-basic.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
:map-style="style"
:center="center"
:zoom="zoom"
:attribution-control="false"
>
<MglNavigationControl />
</MglMap>
Expand Down
1 change: 0 additions & 1 deletion playground/pages/map/map.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<MglMap
:center="center"
:zoom="zoom"
:attribution-control="false"
>
<MglNavigationControl />
</MglMap>
Expand Down
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default defineNuxtModule<ModuleOptions>({
defaults: {},
async setup (options, nuxt) {
// Add MapLibre's CSS
// nuxt.options.css.push('maplibre-gl/dist/maplibre-gl.css')
nuxt.options.css.push('maplibre-gl/dist/maplibre-gl.css')

// Auto-import vue-maplibre-gl components
for (const component of components) {
Expand Down

0 comments on commit 8c19be3

Please sign in to comment.