From 1ff1d4dbf191b1f2201caa09cdd1a0de8b4c01b7 Mon Sep 17 00:00:00 2001 From: olafvanv Date: Wed, 15 Sep 2021 19:52:31 +0200 Subject: [PATCH 1/2] fix: use default export instead of named export --- src/ClusterFeatureLayer.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ClusterFeatureLayer.js b/src/ClusterFeatureLayer.js index 6620586..30230d7 100644 --- a/src/ClusterFeatureLayer.js +++ b/src/ClusterFeatureLayer.js @@ -1,6 +1,8 @@ import { setOptions, GeoJSON, markerClusterGroup } from 'leaflet'; import { FeatureManager } from 'esri-leaflet'; -export { version as VERSION } from '../package.json'; +import packageInfo from '../package.json'; +var version = packageInfo.version; +export { version as VERSION }; export var FeatureLayer = FeatureManager.extend({ @@ -172,7 +174,7 @@ export var FeatureLayer = FeatureManager.extend({ } }); -export function featureLayer (options) { +export function featureLayer(options) { return new FeatureLayer(options); } From ed558654f4f67caaafa587c6b5c62be6e01662f2 Mon Sep 17 00:00:00 2001 From: olafvanv Date: Wed, 15 Sep 2021 20:00:08 +0200 Subject: [PATCH 2/2] upgrade to esri-leaflet 3.0.2 --- package-lock.json | 12 ++++++------ package.json | 2 +- src/ClusterFeatureLayer.js | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index e279fd6..fe077ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -374,9 +374,9 @@ "dev": true }, "@terraformer/arcgis": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@terraformer/arcgis/-/arcgis-2.0.7.tgz", - "integrity": "sha512-7jIQcnd8RnKsDt1IxmEjq9t7l5fnf0e5c+c1+1GjG4NR+TY0XkJcWtrBv0DWd65uAlDiQYMlEG8ls5dz1GQiuA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@terraformer/arcgis/-/arcgis-2.1.0.tgz", + "integrity": "sha512-eKTvNXze2Fo7vAEjvJFIGn5QdU0OP4aD9DuT/uTBLRM1QS+ju7KtPITbVW+xgCviHLnOVeFQ1UsIs9kjkakD4g==", "requires": { "@terraformer/common": "^2.0.7" } @@ -2240,9 +2240,9 @@ } }, "esri-leaflet": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/esri-leaflet/-/esri-leaflet-2.4.1.tgz", - "integrity": "sha512-0ukZIhA9dVx8yYe/ahp2yZm7GmUYTxPktXXHBVPBZoe9I00fkhLsEk2dIt1xa7XsCk/gH+Breb9L5lNALC+Niw==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/esri-leaflet/-/esri-leaflet-3.0.2.tgz", + "integrity": "sha512-Dr5Ie52yH+gojfnGXdzHGkrgn9U3kp9QKB7xqXZX/mPIE9gKyqC5Er8jRifJx+DTgeM67F+P7F09ZJsIvWbheQ==", "requires": { "@terraformer/arcgis": "^2.0.7", "tiny-binary-search": "^1.0.3" diff --git a/package.json b/package.json index 3d8474d..b83a468 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "John Gravois (http://johngravois.com)" ], "dependencies": { - "esri-leaflet": "^2.0.0", + "esri-leaflet": "^3.0.2", "leaflet": "^1.0.0", "leaflet.markercluster": "^1.0.0" }, diff --git a/src/ClusterFeatureLayer.js b/src/ClusterFeatureLayer.js index 30230d7..36fe68f 100644 --- a/src/ClusterFeatureLayer.js +++ b/src/ClusterFeatureLayer.js @@ -174,7 +174,7 @@ export var FeatureLayer = FeatureManager.extend({ } }); -export function featureLayer(options) { +export function featureLayer (options) { return new FeatureLayer(options); }