diff --git a/lib/v-mapbox/controls/VControlAttribution.vue b/lib/v-mapbox/controls/VControlAttribution.vue index b1374d72..4824c48d 100644 --- a/lib/v-mapbox/controls/VControlAttribution.vue +++ b/lib/v-mapbox/controls/VControlAttribution.vue @@ -3,8 +3,7 @@ import type { PropType } from 'vue'; import { AttributionControl } from 'maplibre-gl'; import { defineComponent, onMounted, h } from 'vue'; - import { MapKey } from '../types/symbols'; - import { injectStrict } from '../utils'; + import { MapKey, injectStrict } from '../utils'; export default defineComponent({ name: 'VControlAttribution', diff --git a/lib/v-mapbox/controls/VControlFullscreen.vue b/lib/v-mapbox/controls/VControlFullscreen.vue index a7eef60a..efa4e399 100644 --- a/lib/v-mapbox/controls/VControlFullscreen.vue +++ b/lib/v-mapbox/controls/VControlFullscreen.vue @@ -3,8 +3,7 @@ import type { PropType } from 'vue'; import { FullscreenControl } from 'maplibre-gl'; import { defineComponent, onMounted } from 'vue'; - import { MapKey } from '../types/symbols'; - import { injectStrict } from '../utils'; + import { MapKey, injectStrict } from '../utils'; export default defineComponent({ name: 'VControlFullscreen', diff --git a/lib/v-mapbox/controls/VControlGeolocate.vue b/lib/v-mapbox/controls/VControlGeolocate.vue index 476994a1..3ba5c2bc 100644 --- a/lib/v-mapbox/controls/VControlGeolocate.vue +++ b/lib/v-mapbox/controls/VControlGeolocate.vue @@ -4,8 +4,7 @@ import { GeolocateControl } from 'maplibre-gl'; import { defineComponent, onMounted } from 'vue'; import { geolocateControlEvents as events } from '../constants/events/geolocate'; - import { MapKey } from '../types/symbols'; - import { injectStrict } from '../utils'; + import { MapKey, injectStrict } from '../utils'; export default defineComponent({ name: 'VControlGeolocate', diff --git a/lib/v-mapbox/controls/VControlNavigation.vue b/lib/v-mapbox/controls/VControlNavigation.vue index 092f8cc5..277a0620 100644 --- a/lib/v-mapbox/controls/VControlNavigation.vue +++ b/lib/v-mapbox/controls/VControlNavigation.vue @@ -3,8 +3,7 @@ import type { PropType } from 'vue'; import { NavigationControl } from 'maplibre-gl'; import { defineComponent, onMounted } from 'vue'; - import { MapKey } from '../types/symbols'; - import { injectStrict } from '../utils'; + import { MapKey, injectStrict } from '../utils'; export default defineComponent({ name: 'VControlNavigation', diff --git a/lib/v-mapbox/controls/VControlScale.vue b/lib/v-mapbox/controls/VControlScale.vue index 2b6702f7..4dc0c4b5 100644 --- a/lib/v-mapbox/controls/VControlScale.vue +++ b/lib/v-mapbox/controls/VControlScale.vue @@ -3,8 +3,7 @@ import type { PropType } from 'vue'; import { ScaleControl } from 'maplibre-gl'; import { defineComponent, onMounted } from 'vue'; - import { MapKey } from '../types/symbols'; - import { injectStrict } from '../utils'; + import { MapKey, injectStrict } from '../utils'; export default defineComponent({ name: 'VControlScale', @@ -12,7 +11,7 @@ options: { type: Object as PropType, default: () => ({}), - required: true, + required: false, }, position: { type: String as PropType< diff --git a/lib/v-mapbox/types/symbols.ts b/lib/v-mapbox/types/symbols.ts deleted file mode 100644 index 349f20cf..00000000 --- a/lib/v-mapbox/types/symbols.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { Map } from 'maplibre-gl'; -import type { InjectionKey, Ref } from 'vue'; - -const MapKey: InjectionKey> = Symbol('Map'); - -export { MapKey };