Skip to content

Commit abe37e9

Browse files
committed
fix(ol-source-vector-tile): listen to / pass correct events
closes #271
1 parent 2ff3e2e commit abe37e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/sources/OlSourceVectorTile.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { inject, watch, onMounted, onUnmounted, provide, computed } from "vue";
1212
import usePropsAsObjectProperties from "@/composables/usePropsAsObjectProperties";
1313
import {
1414
useOpenLayersEvents,
15-
FEATURE_EVENTS,
15+
TILE_SOURCE_EVENTS,
1616
} from "@/composables/useOpenLayersEvents";
1717
1818
// prevent warnings caused by event pass-through via useOpenLayersEvents composable
@@ -35,7 +35,7 @@ const { properties } = usePropsAsObjectProperties(props);
3535
3636
const source = computed(() => new VectorTileSource(properties));
3737
38-
useOpenLayersEvents(source, FEATURE_EVENTS);
38+
useOpenLayersEvents(source, TILE_SOURCE_EVENTS);
3939
4040
const applySource = () => {
4141
vectorTileLayer?.value?.setSource(null);

0 commit comments

Comments
 (0)