From bd57128ca441c099facff5fa5ceefac40d896e5f Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 7 May 2019 14:46:18 +0200 Subject: [PATCH] Remove unsupported condition property There's no `condition` property for the Extent interaction --- examples/extent-interaction.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/extent-interaction.js b/examples/extent-interaction.js index 936d75ebe4..0925665abf 100644 --- a/examples/extent-interaction.js +++ b/examples/extent-interaction.js @@ -1,6 +1,5 @@ import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; -import {platformModifierKeyOnly} from '../src/ol/events/condition.js'; import GeoJSON from '../src/ol/format/GeoJSON.js'; import ExtentInteraction from '../src/ol/interaction/Extent.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; @@ -27,9 +26,7 @@ const map = new Map({ }) }); -const extent = new ExtentInteraction({ - condition: platformModifierKeyOnly -}); +const extent = new ExtentInteraction(); map.addInteraction(extent); extent.setActive(false);