diff --git a/packages/vue-mapbox-gl/components/MapboxCluster.vue b/packages/vue-mapbox-gl/components/MapboxCluster.vue index 4978e63..900fa8b 100644 --- a/packages/vue-mapbox-gl/components/MapboxCluster.vue +++ b/packages/vue-mapbox-gl/components/MapboxCluster.vue @@ -130,12 +130,7 @@ import MapboxSource from './MapboxSource.vue'; const props = defineProps(propsConfig); - const emit = defineEmits([ - 'mb-cluster-click', - 'mb-feature-click', - 'mb-feature-mouseenter', - 'mb-feature-mouseleave', - ]); + const emit = defineEmits(); const { map } = useMap(); const id = ref(`mb-cluster-${index}`); diff --git a/packages/vue-mapbox-gl/components/MapboxGeocoder.vue b/packages/vue-mapbox-gl/components/MapboxGeocoder.vue index e075496..530c463 100644 --- a/packages/vue-mapbox-gl/components/MapboxGeocoder.vue +++ b/packages/vue-mapbox-gl/components/MapboxGeocoder.vue @@ -136,7 +136,7 @@ import { useControl } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(events.map((event) => `mb-${event}`)); + const emit = defineEmits(); const root = ref(); const options = computed(() => { diff --git a/packages/vue-mapbox-gl/components/MapboxGeolocateControl.vue b/packages/vue-mapbox-gl/components/MapboxGeolocateControl.vue index 08304db..e6cb0e8 100644 --- a/packages/vue-mapbox-gl/components/MapboxGeolocateControl.vue +++ b/packages/vue-mapbox-gl/components/MapboxGeolocateControl.vue @@ -67,7 +67,7 @@ import { useControl } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(events.map((event) => `mb-${event}`)); + const emit = defineEmits(); const { control } = useControl(GeolocateControl, { propsConfig, events, props, emit }); diff --git a/packages/vue-mapbox-gl/components/MapboxImage.vue b/packages/vue-mapbox-gl/components/MapboxImage.vue index 920cda2..2cfc825 100644 --- a/packages/vue-mapbox-gl/components/MapboxImage.vue +++ b/packages/vue-mapbox-gl/components/MapboxImage.vue @@ -47,7 +47,7 @@ import { useMap } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(['mb-add']); + const emit = defineEmits(); const { map } = useMap(); const isReady = ref(false); diff --git a/packages/vue-mapbox-gl/components/MapboxImages.vue b/packages/vue-mapbox-gl/components/MapboxImages.vue index e80c1ef..4566cc9 100644 --- a/packages/vue-mapbox-gl/components/MapboxImages.vue +++ b/packages/vue-mapbox-gl/components/MapboxImages.vue @@ -25,7 +25,7 @@ required: true, }, }); - const emit = defineEmits(['mb-add', 'mb-ready']); + const emit = defineEmits(); const isReady = ref(false); const addedImages = new Map(); diff --git a/packages/vue-mapbox-gl/components/MapboxLayer.vue b/packages/vue-mapbox-gl/components/MapboxLayer.vue index 152630d..ced64dd 100644 --- a/packages/vue-mapbox-gl/components/MapboxLayer.vue +++ b/packages/vue-mapbox-gl/components/MapboxLayer.vue @@ -61,7 +61,7 @@ import { useEventsBinding, useMap } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(events.map((event) => `mb-${event}`)); + const emit = defineEmits(); const { map } = useMap(); const options = computed(() => { diff --git a/packages/vue-mapbox-gl/components/MapboxMap.vue b/packages/vue-mapbox-gl/components/MapboxMap.vue index 7c51157..b136578 100644 --- a/packages/vue-mapbox-gl/components/MapboxMap.vue +++ b/packages/vue-mapbox-gl/components/MapboxMap.vue @@ -304,7 +304,7 @@ import { useEventsBinding, usePropsBinding } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(events.map((event) => `mb-${event}`)); + const emit = defineEmits(); const map = shallowRef(null); provide('mapbox-map', map); diff --git a/packages/vue-mapbox-gl/components/MapboxMarker.vue b/packages/vue-mapbox-gl/components/MapboxMarker.vue index 78829ae..a1e4931 100644 --- a/packages/vue-mapbox-gl/components/MapboxMarker.vue +++ b/packages/vue-mapbox-gl/components/MapboxMarker.vue @@ -92,7 +92,7 @@ import MapboxPopup from './MapboxPopup.vue'; const props = defineProps(propsConfig); - const emit = defineEmits(events.map((event) => `mb-${event}`)); + const emit = defineEmits(); const slots = useSlots(); const marker = shallowRef(); diff --git a/packages/vue-mapbox-gl/components/MapboxPopup.vue b/packages/vue-mapbox-gl/components/MapboxPopup.vue index 0d6f46a..897ff79 100644 --- a/packages/vue-mapbox-gl/components/MapboxPopup.vue +++ b/packages/vue-mapbox-gl/components/MapboxPopup.vue @@ -73,7 +73,7 @@ import { useMap, usePropsBinding, useEventsBinding } from '../composables/index.js'; const props = defineProps(propsConfig); - const emit = defineEmits(['mb-open', 'mb-close']); + const emit = defineEmits(); const popup = shallowRef(); const root = ref();