From 4db40baabbfc7bf9db78ba55d931f475d2bf8f44 Mon Sep 17 00:00:00 2001 From: Ponlawat W Date: Thu, 14 Dec 2023 09:38:57 +0700 Subject: [PATCH] 0.2.4 - Updated clear features behaviour to also clear loaded extents. (#4) --- CHANGES.md | 2 +- package-lock.json | 4 ++-- package.json | 2 +- src/source/base.ts | 6 +++++- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c40f6a8..fe2ba1f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1 +1 @@ -Updated imports and exports +Updated clear features behaviour to also clear loaded extents. diff --git a/package-lock.json b/package-lock.json index 7c73843..93ad124 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ol-osmoverpass", - "version": "0.2.3", + "version": "0.2.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ol-osmoverpass", - "version": "0.2.3", + "version": "0.2.4", "license": "ISC", "devDependencies": { "happy-dom": "^12.10.3", diff --git a/package.json b/package.json index 3ec2c94..e16ea7c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ol-osmoverpass", "type": "module", - "version": "0.2.3", + "version": "0.2.4", "description": "OverLayers vector layer source for OpenStreetMap elements using Overpass API", "main": "dist/index.js", "keywords": [ diff --git a/src/source/base.ts b/src/source/base.ts index 7136f32..fd04e6e 100644 --- a/src/source/base.ts +++ b/src/source/base.ts @@ -110,7 +110,6 @@ export default abstract class OSMOverpassSourceBase this.options.cachedFeaturesCount) { this.clear(true); - this.loadedExtents.clear(); } const features = await this.fetchOSMOverpass(fetchExtent, projection); this.addFeatures(features.filter(x => !this.getFeatureById(x.getId()!))); @@ -124,6 +123,11 @@ export default abstract class OSMOverpassSourceBase