Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esri-leaflet-cluster

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esri-leaflet-cluster - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

.github/workflows/main.yml

67

CHANGELOG.md

@@ -5,2 +5,12 @@ # Changelog

## [3.0.1] - 2023-02-23
### Fixed
- Popup/tooltip issue ([#65](https://github.com/Esri/esri-leaflet-cluster/pull/65))
### Changed
- Package maintenance - updated dependencies, unit testing, etc. ([#63](https://github.com/Esri/esri-leaflet-cluster/pull/63))
## [3.0.0] - 2022-02-25

@@ -10,11 +20,11 @@

* Leaflet, Esri Leaflet, and leaflet.markercluster are now peerDependencies so that consumers can install whichever version they want.
- Leaflet, Esri Leaflet, and leaflet.markercluster are now peerDependencies so that consumers can install whichever version they want.
### Fixed
* Do not use named exports from JSON ([#49](https://github.com/Esri/esri-leaflet-cluster/pull/49)) ([info](https://webpack.js.org/migrate/5/#cleanup-the-code) / [same change in Esri Leaflet](https://github.com/Esri/esri-leaflet/pull/1273/files))
- Do not use named exports from JSON ([#49](https://github.com/Esri/esri-leaflet-cluster/pull/49)) ([info](https://webpack.js.org/migrate/5/#cleanup-the-code) / [same change in Esri Leaflet](https://github.com/Esri/esri-leaflet/pull/1273/files))
### Changed
* Updated dependencies ([#51](https://github.com/Esri/esri-leaflet-cluster/pull/51))
- Updated dependencies ([#51](https://github.com/Esri/esri-leaflet-cluster/pull/51))

@@ -25,4 +35,4 @@ ## [2.1.0] - 2020-06-22

* Updated dependencies ([#33](https://github.com/Esri/esri-leaflet-cluster/pull/33))
* port createNewLayer from L.esri.featureLayer for renderer plugin ([#31](https://github.com/Esri/esri-leaflet-cluster/pull/31))
- Updated dependencies ([#33](https://github.com/Esri/esri-leaflet-cluster/pull/33))
- port createNewLayer from L.esri.featureLayer for renderer plugin ([#31](https://github.com/Esri/esri-leaflet-cluster/pull/31))

@@ -33,3 +43,3 @@ ## [2.0.1]

* Updated dependencies ([#20](https://github.com/Esri/esri-leaflet-cluster/pull/20))
- Updated dependencies ([#20](https://github.com/Esri/esri-leaflet-cluster/pull/20))

@@ -40,15 +50,15 @@ ## [2.0.0]

* Namespace change (~~`L.esri.Cluster.clusteredFeatureLayer`~~ is now `L.esri.Cluster.featureLayer` )
* repository and npm package have been renamed esri-leaflet-cluster~~ed-feature-layer~~ for brevity's sake
- Namespace change (~~`L.esri.Cluster.clusteredFeatureLayer`~~ is now `L.esri.Cluster.featureLayer` )
- repository and npm package have been renamed esri-leaflet-cluster~~ed-feature-layer~~ for brevity's sake
### Added
* The build system has been refactored to use latest Rollup and Rollup plugins.
* Reworked bundling directives for various modules systems to resolve and simplify various issues
* WebPack users no longer have to use the Babel loader.
* Babelify with Babel 6 now works
- The build system has been refactored to use latest Rollup and Rollup plugins.
- Reworked bundling directives for various modules systems to resolve and simplify various issues
- WebPack users no longer have to use the Babel loader.
- Babelify with Babel 6 now works
### Removed
* `bindPopup` and `unbindPopup` logic have been removed from this plugin. Equivalent functionality is available via [`L.Layer`](http://leafletjs.com/reference-1.0.0.html#layer-bindpopup) in Leaflet itself.
- `bindPopup` and `unbindPopup` logic have been removed from this plugin. Equivalent functionality is available via [`L.Layer`](http://leafletjs.com/reference-1.0.0.html#layer-bindpopup) in Leaflet itself.

@@ -58,3 +68,3 @@ ```js

return "attribute value is: " + layer.feature.properties.ATTRIBUTENAME;
})
});
```

@@ -66,11 +76,11 @@

* Namespace change (~~`L.esri.clusteredFeatureLayer`~~ is now `L.esri`**.Cluster.**`clusteredFeatureLayer` )
* Requires the 2.0.0-beta.6 release of Esri Leaflet.
* Requires the 1.0.0-beta.2 release of Leaflet.
- Namespace change (~~`L.esri.clusteredFeatureLayer`~~ is now `L.esri`**.Cluster.**`clusteredFeatureLayer` )
- Requires the 2.0.0-beta.6 release of Esri Leaflet.
- Requires the 1.0.0-beta.2 release of Leaflet.
### Added
* Better build/test/release automation.
* Support for JSPM in package.json. Now you can `import cluster from 'esri-leaflet-clustered-feature-layer/src/ClusteredFeatureLayer';` for more compact builds but, be aware of [caveats](http://blog.izs.me/post/44149270867/why-no-directories-lib-in-node-the-less-snarky)
* Support for browserify in the package.json. Now you can `var cluster = require('esri-leaflet-clustered-feature-layer/src/ClusteredFeatureLayer');` for more compact builds, but be aware of [caveats](http://blog.izs.me/post/44149270867/why-no-directories-lib-in-node-the-less-snarky)
- Better build/test/release automation.
- Support for JSPM in package.json. Now you can `import cluster from 'esri-leaflet-clustered-feature-layer/src/ClusteredFeatureLayer';` for more compact builds but, be aware of [caveats](http://blog.izs.me/post/44149270867/why-no-directories-lib-in-node-the-less-snarky)
- Support for browserify in the package.json. Now you can `var cluster = require('esri-leaflet-clustered-feature-layer/src/ClusteredFeatureLayer');` for more compact builds, but be aware of [caveats](http://blog.izs.me/post/44149270867/why-no-directories-lib-in-node-the-less-snarky)

@@ -81,3 +91,3 @@ ## [1.0.2]

* Fix build system error. Ensure that tag contains built files.
- Fix build system error. Ensure that tag contains built files.

@@ -88,4 +98,4 @@ ## [1.0.0]

* Update dependencies
* CDN moved to [JS Delivr](http://www.jsdelivr.com/#!leaflet.esri.clustered-feature-layer)
- Update dependencies
- CDN moved to [JS Delivr](http://www.jsdelivr.com/#!leaflet.esri.clustered-feature-layer)

@@ -96,4 +106,4 @@ ## [Release Candidate 4]

* `bower install esri-leaflet-clustered-feature-layer` should now work without `bower cache clean`
* Update Esri Leaflet dependency to RC 4
- `bower install esri-leaflet-clustered-feature-layer` should now work without `bower cache clean`
- Update Esri Leaflet dependency to RC 4

@@ -104,4 +114,4 @@ ## [Release Candidate 3]

* fixed `bower install esri-leaflet-clustered-feature-layer`
* Update Esri Leaflet dependency to RC 3
- fixed `bower install esri-leaflet-clustered-feature-layer`
- Update Esri Leaflet dependency to RC 3

@@ -112,3 +122,4 @@ ## [Release Candidate 2]

[unreleased]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v3.0.0...HEAD
[unreleased]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v3.0.1...HEAD
[3.0.1]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v3.0.0...v3.0.1
[3.0.0]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v2.1.0...v3.0.0

@@ -115,0 +126,0 @@ [2.1.0]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v2.0.1...v2.1.0

@@ -1,3 +0,3 @@

/* esri-leaflet-cluster - v3.0.0 - Fri Feb 25 2022 10:54:49 GMT-0600 (Central Standard Time)
* Copyright (c) 2022 Environmental Systems Research Institute, Inc.
/* esri-leaflet-cluster - v3.0.1 - Thu Feb 23 2023 13:13:09 GMT-0600 (Central Standard Time)
* Copyright (c) 2023 Environmental Systems Research Institute, Inc.
* Apache-2.0 */

@@ -12,7 +12,7 @@ (function (global, factory) {

var description = "Esri Leaflet plugin for visualizing Feature Layers as clusters with L.markercluster.";
var version$1 = "3.0.0";
var version$1 = "3.0.1";
var author = "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)";
var contributors = [
"Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)",
"John Gravois <jgravois@esri.com> (http://johngravois.com)"
"John Gravois (http://johngravois.com)"
];

@@ -25,24 +25,28 @@ var peerDependencies = {

var devDependencies = {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
chai: "4.3.6",
"gh-release": "^6.0.1",
"http-server": "^14.1.0",
karma: "^6.3.16",
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^3.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
chai: "4.3.7",
"chokidar-cli": "^3.0.0",
"gh-release": "^7.0.2",
"http-server": "^14.1.1",
karma: "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage": "^2.2.0",
"karma-edgium-launcher": "github:matracey/karma-edgium-launcher",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-safari-launcher": "~1.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-sourcemap-loader": "^0.3.8",
mkdirp: "^0.5.1",
mocha: "^9.2.0",
mkdirp: "^1.0.4",
mocha: "^10.2.0",
"node-sass": "^7.0.1",
rollup: "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
"npm-run-all": "^4.1.5",
rollup: "^2.79.1",
semistandard: "^11.0.0",
sinon: "^13.0.1",
sinon: "^15.0.1",
"sinon-chai": "3.7.0",
snazzy: "^9.0.0",
watch: "^1.0.2"
snazzy: "^9.0.0"
};

@@ -77,3 +81,5 @@ var homepage = "https://github.com/Esri/esri-leaflet-cluster";

release: "./scripts/release.sh",
start: "watch 'npm run build' src & http-server -p 5678 -c-1 -o",
"start-watch": "chokidar src -c \"npm run build\"",
start: "run-p start-watch serve",
serve: "http-server -p 5678 -c-1 -o",
test: "npm run lint && karma start"

@@ -278,2 +284,32 @@ };

return this._layers[id];
},
// This is the same as the Layer.openPopup method except it excludes the `FeatureGroup`
// logic to work around https://github.com/Leaflet/Leaflet/issues/8761
openPopup (latlng) {
if (this._popup) {
if (this._popup._prepareOpen(latlng || this._latlng)) {
// open the popup on the map
this._popup.openOn(this._map);
}
}
return this;
},
// This is the same as the `Layer.openTooltip` method except it excludes the `FeatureGroup`
// logic to work around https://github.com/Leaflet/Leaflet/issues/8761
openTooltip (latlng) {
if (this._tooltip) {
if (this._tooltip._prepareOpen(latlng)) {
// open the tooltip on the map
this._tooltip.openOn(this._map);
if (this.getElement) {
this._setAriaDescribedByOnLayer(this);
} else if (this.eachLayer) {
this.eachLayer(this._setAriaDescribedByOnLayer, this);
}
}
}
return this;
}

@@ -280,0 +316,0 @@ });

@@ -1,5 +0,5 @@

/* esri-leaflet-cluster - v3.0.0 - Fri Feb 25 2022 10:54:50 GMT-0600 (Central Standard Time)
* Copyright (c) 2022 Environmental Systems Research Institute, Inc.
/* esri-leaflet-cluster - v3.0.1 - Thu Feb 23 2023 13:13:10 GMT-0600 (Central Standard Time)
* Copyright (c) 2023 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("leaflet"),require("esri-leaflet")):"function"==typeof define&&define.amd?define(["exports","leaflet","esri-leaflet"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).L=e.L||{},e.L.esri=e.L.esri||{},e.L.esri.Cluster={}),e.L,e.L.esri)}(this,(function(e,t,r){"use strict";var s="3.0.0",i=r.FeatureManager.extend({statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose",CLUSTEREVENTS:"clusterclick clusterdblclick clustermouseover clustermouseout clustermousemove clustercontextmenu"},initialize:function(e){r.FeatureManager.prototype.initialize.call(this,e),e=t.setOptions(this,e),this._layers={},this._leafletIds={},this.cluster=t.markerClusterGroup(e),this._key="c"+(1e9*Math.random()).toString(36).replace(".","_"),this.cluster.addEventParent(this)},onAdd:function(e){r.FeatureManager.prototype.onAdd.call(this,e),this._map.addLayer(this.cluster)},onRemove:function(e){r.FeatureManager.prototype.onRemove.call(this,e),this._map.removeLayer(this.cluster)},createNewLayer:function(e){var r=t.GeoJSON.geometryToLayer(e,this.options);return r&&(r.defaultOptions=r.options),r},createLayers:function(e){for(var r=[],s=e.length-1;s>=0;s--){var i=e[s],a=this._layers[i.id];a||((a=this.createNewLayer(i)).feature=t.GeoJSON.asFeature(i),a.defaultOptions=a.options,a._leaflet_id=this._key+"_"+i.id,this.resetStyle(a.feature.id),this._layers[a.feature.id]=a,this._leafletIds[a._leaflet_id]=i.id,this.options.onEachFeature&&this.options.onEachFeature(a.feature,a),this.fire("createfeature",{feature:a.feature})),(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(i))&&r.push(a)}r.length&&this.cluster.addLayers(r)},addLayers:function(e){for(var t=[],r=e.length-1;r>=0;r--){var s=this._layers[e[r]];this.fire("addfeature",{feature:s.feature}),t.push(s)}this.cluster.addLayers(t)},removeLayers:function(e,t){for(var r=[],s=e.length-1;s>=0;s--){var i=e[s],a=this._layers[i];this.fire("removefeature",{feature:a.feature,permanent:t}),r.push(a),this._layers[i]&&t&&delete this._layers[i]}this.cluster.removeLayers(r)},resetStyle:function(e){var t=this._layers[e];return t&&(t.options=t.defaultOptions,this.setFeatureStyle(t.feature.id,this.options.style)),this},setStyle:function(e){return this.eachFeature((function(t){this.setFeatureStyle(t.feature.id,e)}),this),this},setFeatureStyle:function(e,t){var r=this._layers[e];"function"==typeof t&&(t=t(r.feature)),r.setStyle&&r.setStyle(t)},eachFeature:function(e,t){for(var r in this._layers)e.call(t,this._layers[r]);return this},getFeature:function(e){return this._layers[e]}});function a(e){return new i(e)}e.FeatureLayer=i,e.VERSION=s,e.default=a,e.featureLayer=a,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("leaflet"),require("esri-leaflet")):"function"==typeof define&&define.amd?define(["exports","leaflet","esri-leaflet"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).L=e.L||{},e.L.esri=e.L.esri||{},e.L.esri.Cluster={}),e.L,e.L.esri)}(this,(function(e,t,r){"use strict";var i="3.0.1",s=r.FeatureManager.extend({statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose",CLUSTEREVENTS:"clusterclick clusterdblclick clustermouseover clustermouseout clustermousemove clustercontextmenu"},initialize:function(e){r.FeatureManager.prototype.initialize.call(this,e),e=t.setOptions(this,e),this._layers={},this._leafletIds={},this.cluster=t.markerClusterGroup(e),this._key="c"+(1e9*Math.random()).toString(36).replace(".","_"),this.cluster.addEventParent(this)},onAdd:function(e){r.FeatureManager.prototype.onAdd.call(this,e),this._map.addLayer(this.cluster)},onRemove:function(e){r.FeatureManager.prototype.onRemove.call(this,e),this._map.removeLayer(this.cluster)},createNewLayer:function(e){var r=t.GeoJSON.geometryToLayer(e,this.options);return r&&(r.defaultOptions=r.options),r},createLayers:function(e){for(var r=[],i=e.length-1;i>=0;i--){var s=e[i],a=this._layers[s.id];a||((a=this.createNewLayer(s)).feature=t.GeoJSON.asFeature(s),a.defaultOptions=a.options,a._leaflet_id=this._key+"_"+s.id,this.resetStyle(a.feature.id),this._layers[a.feature.id]=a,this._leafletIds[a._leaflet_id]=s.id,this.options.onEachFeature&&this.options.onEachFeature(a.feature,a),this.fire("createfeature",{feature:a.feature})),(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(s))&&r.push(a)}r.length&&this.cluster.addLayers(r)},addLayers:function(e){for(var t=[],r=e.length-1;r>=0;r--){var i=this._layers[e[r]];this.fire("addfeature",{feature:i.feature}),t.push(i)}this.cluster.addLayers(t)},removeLayers:function(e,t){for(var r=[],i=e.length-1;i>=0;i--){var s=e[i],a=this._layers[s];this.fire("removefeature",{feature:a.feature,permanent:t}),r.push(a),this._layers[s]&&t&&delete this._layers[s]}this.cluster.removeLayers(r)},resetStyle:function(e){var t=this._layers[e];return t&&(t.options=t.defaultOptions,this.setFeatureStyle(t.feature.id,this.options.style)),this},setStyle:function(e){return this.eachFeature((function(t){this.setFeatureStyle(t.feature.id,e)}),this),this},setFeatureStyle:function(e,t){var r=this._layers[e];"function"==typeof t&&(t=t(r.feature)),r.setStyle&&r.setStyle(t)},eachFeature:function(e,t){for(var r in this._layers)e.call(t,this._layers[r]);return this},getFeature:function(e){return this._layers[e]},openPopup(e){return this._popup&&this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map),this},openTooltip(e){return this._tooltip&&this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this)),this}});function a(e){return new s(e)}e.FeatureLayer=s,e.VERSION=i,e.default=a,e.featureLayer=a,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=esri-leaflet-cluster.js.map

@@ -1,1 +0,1 @@

{"name": "esri-leaflet-cluster","version": "3.0.0","lib": {"path": "dist/esri-leaflet-cluster.js","integrity": "sha512-XFCzSxay1bEwLt/pTNuKEw11WbMGlWUqSLMGUtsle2Zbddt2C5uf18w0HeHbc0NP9BTFy1Mzhab7Bkr+nxp34g=="}}
{"name": "esri-leaflet-cluster","version": "3.0.1","lib": {"path": "dist/esri-leaflet-cluster.js","integrity": "sha512-owlLNb9FC1P/vOTmW7GHEfuqsD54Xqj+B49XDVIqWlRTdPVXN4b/OrdarBVMP9ITeikRa3qj2HYQuFFORGCF4A=="}}

@@ -12,3 +12,3 @@ // Karma configuration

// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['mocha', 'chai-sinon'],
frameworks: ['mocha', 'sinon-chai'],

@@ -32,3 +32,5 @@ // list of files / patterns to load in the browser

// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {},
preprocessors: {
'dist/**/*.js': ['sourcemap', 'coverage']
},

@@ -38,3 +40,3 @@ // test results reporter to use

// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],
reporters: ['mocha', 'coverage'],

@@ -57,9 +59,34 @@ // web server port

browsers: [
'Chrome'
// 'ChromeCanary',
// 'Firefox',
// 'Safari',
// 'PhantomJS'
'Chrome1280x1024'
],
customLaunchers: {
Chrome1280x1024: {
base: 'ChromeHeadless',
// increased viewport is required for some tests (TODO fix tests)
// https://github.com/Leaflet/Leaflet/issues/7113#issuecomment-619528577
flags: ['--window-size=1280,1024']
},
FirefoxTouch: {
base: 'FirefoxHeadless',
prefs: {
'dom.w3c_touch_events.enabled': 1
}
},
FirefoxNoTouch: {
base: 'FirefoxHeadless',
prefs: {
'dom.w3c_touch_events.enabled': 0
}
}
},
concurrency: 1,
// If browser does not capture in given timeout [ms], kill it
captureTimeout: 60000,
// Timeout for the client socket connection [ms].
browserSocketTimeout: 30000,
// Continuous Integration mode

@@ -66,0 +93,0 @@ // if true, Karma captures browsers, runs the tests and exits

{
"name": "esri-leaflet-cluster",
"description": "Esri Leaflet plugin for visualizing Feature Layers as clusters with L.markercluster.",
"version": "3.0.0",
"version": "3.0.1",
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)",
"contributors": [
"Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)",
"John Gravois <jgravois@esri.com> (http://johngravois.com)"
"John Gravois (http://johngravois.com)"
],

@@ -16,24 +16,28 @@ "peerDependencies": {

"devDependencies": {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"chai": "4.3.6",
"gh-release": "^6.0.1",
"http-server": "^14.1.0",
"karma": "^6.3.16",
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^3.1.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.4.0",
"chai": "4.3.7",
"chokidar-cli": "^3.0.0",
"gh-release": "^7.0.2",
"http-server": "^14.1.1",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage": "^2.2.0",
"karma-edgium-launcher": "github:matracey/karma-edgium-launcher",
"karma-firefox-launcher": "^2.1.2",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-safari-launcher": "~1.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-sourcemap-loader": "^0.3.8",
"mkdirp": "^0.5.1",
"mocha": "^9.2.0",
"mkdirp": "^1.0.4",
"mocha": "^10.2.0",
"node-sass": "^7.0.1",
"rollup": "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
"npm-run-all": "^4.1.5",
"rollup": "^2.79.1",
"semistandard": "^11.0.0",
"sinon": "^13.0.1",
"sinon": "^15.0.1",
"sinon-chai": "3.7.0",
"snazzy": "^9.0.0",
"watch": "^1.0.2"
"snazzy": "^9.0.0"
},

@@ -69,3 +73,5 @@ "homepage": "https://github.com/Esri/esri-leaflet-cluster",

"release": "./scripts/release.sh",
"start": "watch 'npm run build' src & http-server -p 5678 -c-1 -o",
"start-watch": "chokidar src -c \"npm run build\"",
"start": "run-p start-watch serve",
"serve": "http-server -p 5678 -c-1 -o",
"test": "npm run lint && karma start"

@@ -72,0 +78,0 @@ },

@@ -1,2 +0,2 @@

import { terser } from 'rollup-plugin-terser';
import terser from '@rollup/plugin-terser';
import config from './base.js';

@@ -3,0 +3,0 @@

# Esri Leaflet Cluster
[![Build Status](https://travis-ci.org/Esri/esri-leaflet-cluster.svg?branch=master)](https://travis-ci.org/Esri/esri-leaflet-cluster)
[![npm version][npm-img]][npm-url]
[![apache licensed](https://img.shields.io/badge/license-Apache%202.0-orange.svg?style=flat-square)](https://raw.githubusercontent.com/Esri/esri-leaflet/master/LICENSE)
[npm-img]: https://img.shields.io/npm/v/esri-leaflet-cluster.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/esri-leaflet-cluster
> enables visualization of ArcGIS Feature Services as clusters using the [L.MarkerCluster](https://github.com/Leaflet/Leaflet.markercluster) Leaflet Plugin.

@@ -6,0 +10,0 @@

@@ -174,2 +174,32 @@ import { setOptions, GeoJSON, markerClusterGroup } from 'leaflet';

return this._layers[id];
},
// This is the same as the Layer.openPopup method except it excludes the `FeatureGroup`
// logic to work around https://github.com/Leaflet/Leaflet/issues/8761
openPopup (latlng) {
if (this._popup) {
if (this._popup._prepareOpen(latlng || this._latlng)) {
// open the popup on the map
this._popup.openOn(this._map);
}
}
return this;
},
// This is the same as the `Layer.openTooltip` method except it excludes the `FeatureGroup`
// logic to work around https://github.com/Leaflet/Leaflet/issues/8761
openTooltip (latlng) {
if (this._tooltip) {
if (this._tooltip._prepareOpen(latlng)) {
// open the tooltip on the map
this._tooltip.openOn(this._map);
if (this.getElement) {
this._setAriaDescribedByOnLayer(this);
} else if (this.eachLayer) {
this.eachLayer(this._setAriaDescribedByOnLayer, this);
}
}
}
return this;
}

@@ -176,0 +206,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc