Skip to content

Commit 65335a4

Browse files
author
danhnguyen
committed
🔧 refactor(Home): update imports and enhance type definitions for Mapbox components
1 parent 3911a74 commit 65335a4

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

‎examples/src/views/Home.vue‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script lang="ts" setup>
22
import { computed } from 'vue';
3-
import { useMapbox } from '@libs/composables';
4-
import GeolocateControls from '@libs/components/GeolocateControls.vue';
5-
import Mapbox from '@libs/components/Mapbox.vue';
3+
import {
4+
GeolocateControls,
5+
Mapbox,
6+
useMapbox,
7+
type MapOptions,
8+
} from 'vue3-maplibre-gl';
69
import 'vue3-maplibre-gl/dist/style.css';
710
8-
const options = computed(() => ({
11+
const options = computed<MapOptions>(() => ({
912
container: 'map',
1013
style: 'https://worldwidemaps.sqkii.com/api/maps/purple/style.json',
1114
center: [103.8198, 1.3521],

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"dependencies": {
7171
"maplibre-gl": "^5.6.1",
7272
"vue": "^3.5.17",
73-
"vue3-maplibre-gl": "^3.2.0"
73+
"vue3-maplibre-gl": "^3.2.1"
7474
},
7575
"peerDependencies": {
7676
"vue": "^3.0.0"

‎yarn.lock‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,15 @@ vue3-maplibre-gl@^3.2.0:
32613261
maplibre-gl "^4.3.2"
32623262
vue "^3.4.27"
32633263

3264+
vue3-maplibre-gl@^3.2.1:
3265+
version "3.2.1"
3266+
resolved "https://registry.yarnpkg.com/vue3-maplibre-gl/-/vue3-maplibre-gl-3.2.1.tgz#a194d454682ad2b4d3d22231c0be9adcdc210700"
3267+
integrity sha512-ZNTak3OUraIhg1ZDmHePSzaDzmJJ0taOqQsTi5qhbb83vup8M/zxnO5AvDs3YscJcSV99uW2aIng3mVVw4YCrw==
3268+
dependencies:
3269+
maplibre-gl "^5.6.1"
3270+
vue "^3.5.17"
3271+
vue3-maplibre-gl "^3.2.0"
3272+
32643273
vue@^3.4.27, vue@^3.5.13, vue@^3.5.17:
32653274
version "3.5.17"
32663275
resolved "https://registry.yarnpkg.com/vue/-/vue-3.5.17.tgz#ea8a6a45abb2b0620e7d479319ce8434b55650cf"

0 commit comments

Comments
 (0)