Skip to content

Commit

Permalink
fix(ol-source-vector-tile): listen to / pass correct events
Browse files Browse the repository at this point in the history
closes #271
  • Loading branch information
d-koppenhagen committed Nov 8, 2023
1 parent 2ff3e2e commit abe37e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/sources/OlSourceVectorTile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { inject, watch, onMounted, onUnmounted, provide, computed } from "vue";
import usePropsAsObjectProperties from "@/composables/usePropsAsObjectProperties";
import {
useOpenLayersEvents,
FEATURE_EVENTS,
TILE_SOURCE_EVENTS,
} from "@/composables/useOpenLayersEvents";
// prevent warnings caused by event pass-through via useOpenLayersEvents composable
Expand All @@ -35,7 +35,7 @@ const { properties } = usePropsAsObjectProperties(props);
const source = computed(() => new VectorTileSource(properties));
useOpenLayersEvents(source, FEATURE_EVENTS);
useOpenLayersEvents(source, TILE_SOURCE_EVENTS);
const applySource = () => {
vectorTileLayer?.value?.setSource(null);
Expand Down

0 comments on commit abe37e9

Please # to comment.