Skip to content

Commit 8226b16

Browse files
committed
feat(ol-interaction-select): use original FilterFunction type from OpenLayers
closes #363
1 parent 30fbcf7 commit 8226b16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/interaction/OlInteractionSelect.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
</template>
44

55
<script setup lang="ts">
6-
import { provide, inject, watch, onMounted, onUnmounted, computed } from "vue";
7-
import Select from "ol/interaction/Select";
6+
import { computed, inject, onMounted, onUnmounted, provide, watch } from "vue";
7+
import Select, { type FilterFunction } from "ol/interaction/Select";
88
import Style from "ol/style/Style";
99
import type Collection from "ol/Collection";
1010
import type { Condition } from "ol/events/condition";
@@ -23,7 +23,7 @@ const props = withDefaults(
2323
defineProps<{
2424
multi?: boolean;
2525
condition?: Condition;
26-
filter?: () => boolean;
26+
filter?: FilterFunction;
2727
features?: Collection<Feature<Geometry>>;
2828
hitTolerance?: number;
2929
removeCondition?: Condition;

0 commit comments

Comments
 (0)