From 280199956d5202a4e16174bacdae5ce594b9ca17 Mon Sep 17 00:00:00 2001 From: razorness <684302+razorness@users.noreply.github.com> Date: Thu, 18 May 2023 20:10:00 +0200 Subject: [PATCH] added map language support --- package.json | 3 +- src/App.vue | 19 +++++- src/lib/components/map.component.ts | 26 +++++++- src/lib/defaults.ts | 3 +- src/lib/lib/map.lib.ts | 8 ++- src/lib/lib/mapRegistry.ts | 6 +- src/lib/types.ts | 72 +++++++++++++++++++++ yarn.lock | 98 ++++++++++++++++++++++++++++- 8 files changed, 223 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 4f1ccc0..bb56097 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-maplibre-gl", - "version": "2.0.7", + "version": "2.1.0", "description": "Vue 3 plugin for maplibre-gl", "keywords": [ "vue", @@ -50,6 +50,7 @@ "geojson": "^0.5.0", "maplibre-gl": "^2.4.0", "mitt": "^3.0.0", + "modular-maptiler-sdk": "^1.0.16", "sass": "^1.62.1", "taze": "^0.10.1", "typescript": "^5.0.4", diff --git a/src/App.vue b/src/App.vue index 6a20680..f8495b1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,7 @@ :center="center" :zoom="zoom" :attribution-control="false" + language="fr" @map:load="onLoad" @map:zoomstart="isZooming = true" @map:zoomend="isZooming = false" @@ -70,12 +71,22 @@ +
+ + +