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 2.1.0 to 3.0.0

dist/siteData.json

17

CHANGELOG.md

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

## [3.0.0] - 2022-02-25
### Breaking Changes
* 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))
### Changed
* Updated dependencies ([#51](https://github.com/Esri/esri-leaflet-cluster/pull/51))
## [2.1.0] - 2020-06-22

@@ -88,3 +102,4 @@

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

@@ -91,0 +106,0 @@ [2.0.1]: https://github.com/Esri/esri-leaflet-clustered-feature-layer/compare/v2.0.0...v2.0.1

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

/* esri-leaflet-cluster - v2.1.0 - Mon Jun 22 2020 14:46:35 GMT-0500 (Central Daylight Time)
* Copyright (c) 2020 Environmental Systems Research Institute, Inc.
/* 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.
* Apache-2.0 */

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

typeof define === 'function' && define.amd ? define(['exports', 'leaflet', 'esri-leaflet'], factory) :
(global = global || self, factory((global.L = global.L || {}, global.L.esri = global.L.esri || {}, global.L.esri.Cluster = {}), global.L, global.L.esri));
}(this, (function (exports, leaflet, esriLeaflet) { 'use strict';
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.L = global.L || {}, global.L.esri = global.L.esri || {}, global.L.esri.Cluster = {}), global.L, global.L.esri));
})(this, (function (exports, leaflet, esriLeaflet) { 'use strict';
var version = "2.1.0";
var name = "esri-leaflet-cluster";
var description = "Esri Leaflet plugin for visualizing Feature Layers as clusters with L.markercluster.";
var version$1 = "3.0.0";
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)"
];
var peerDependencies = {
"esri-leaflet": "*",
leaflet: "*",
"leaflet.markercluster": "^1.0.0"
};
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",
"karma-coverage": "^2.2.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.3.8",
mkdirp: "^0.5.1",
mocha: "^9.2.0",
"node-sass": "^7.0.1",
rollup: "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
semistandard: "^11.0.0",
sinon: "^13.0.1",
"sinon-chai": "3.7.0",
snazzy: "^9.0.0",
watch: "^1.0.2"
};
var homepage = "https://github.com/Esri/esri-leaflet-cluster";
var jspm = {
registry: "npm",
format: "es6",
main: "src/ClusterFeatureLayer.js"
};
var keywords = [
"arcgis",
"esri",
"esri leaflet",
"gis",
"leaflet plugin",
"mapping"
];
var license = "Apache-2.0";
var main = "dist/esri-leaflet-cluster-debug.js";
var module = "src/ClusterFeatureLayer.js";
var readmeFilename = "README.md";
var repository = {
type: "git",
url: "git+https://github.com/Esri/esri-leaflet-cluster.git"
};
var scripts = {
prebuild: "mkdirp dist",
build: "rollup -c profiles/debug.js & rollup -c profiles/production.js",
lint: "semistandard | snazzy",
pretest: "npm run build",
release: "./scripts/release.sh",
start: "watch 'npm run build' src & http-server -p 5678 -c-1 -o",
test: "npm run lint && karma start"
};
var semistandard = {
globals: [
"expect",
"L",
"sinon"
]
};
var packageInfo = {
name: name,
description: description,
version: version$1,
author: author,
contributors: contributors,
peerDependencies: peerDependencies,
devDependencies: devDependencies,
homepage: homepage,
"jsnext:main": "src/ClusterFeatureLayer.js",
jspm: jspm,
keywords: keywords,
license: license,
main: main,
module: module,
readmeFilename: readmeFilename,
repository: repository,
scripts: scripts,
semistandard: semistandard
};
var version = packageInfo.version;
var FeatureLayer = esriLeaflet.FeatureManager.extend({

@@ -189,3 +285,3 @@

exports.VERSION = version;
exports.default = featureLayer;
exports["default"] = featureLayer;
exports.featureLayer = featureLayer;

@@ -195,3 +291,3 @@

})));
}));
//# sourceMappingURL=esri-leaflet-cluster-debug.js.map

6

dist/esri-leaflet-cluster.js

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

/* esri-leaflet-cluster - v2.1.0 - Mon Jun 22 2020 14:46:35 GMT-0500 (Central Daylight Time)
* Copyright (c) 2020 Environmental Systems Research Institute, Inc.
/* 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.
* 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=e||self).L=e.L||{},e.L.esri=e.L.esri||{},e.L.esri.Cluster={}),e.L,e.L.esri)}(this,function(e,a,t){"use strict";var r=t.FeatureManager.extend({statics:{EVENTS:"click dblclick mouseover mouseout mousemove contextmenu popupopen popupclose",CLUSTEREVENTS:"clusterclick clusterdblclick clustermouseover clustermouseout clustermousemove clustercontextmenu"},initialize:function(e){t.FeatureManager.prototype.initialize.call(this,e),e=a.setOptions(this,e),this._layers={},this._leafletIds={},this.cluster=a.markerClusterGroup(e),this._key="c"+(1e9*Math.random()).toString(36).replace(".","_"),this.cluster.addEventParent(this)},onAdd:function(e){t.FeatureManager.prototype.onAdd.call(this,e),this._map.addLayer(this.cluster)},onRemove:function(e){t.FeatureManager.prototype.onRemove.call(this,e),this._map.removeLayer(this.cluster)},createNewLayer:function(e){var t=a.GeoJSON.geometryToLayer(e,this.options);return t&&(t.defaultOptions=t.options),t},createLayers:function(e){for(var t=[],r=e.length-1;0<=r;r--){var s=e[r],i=this._layers[s.id];i||((i=this.createNewLayer(s)).feature=a.GeoJSON.asFeature(s),i.defaultOptions=i.options,i._leaflet_id=this._key+"_"+s.id,this.resetStyle(i.feature.id),this._layers[i.feature.id]=i,this._leafletIds[i._leaflet_id]=s.id,this.options.onEachFeature&&this.options.onEachFeature(i.feature,i),this.fire("createfeature",{feature:i.feature})),(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(s))&&t.push(i)}t.length&&this.cluster.addLayers(t)},addLayers:function(e){for(var t=[],r=e.length-1;0<=r;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;0<=s;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(t){return this.eachFeature(function(e){this.setFeatureStyle(e.feature.id,t)},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 s(e){return new r(e)}e.FeatureLayer=r,e.VERSION="2.1.0",e.default=s,e.featureLayer=s,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 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})}));
//# sourceMappingURL=esri-leaflet-cluster.js.map
{
"name": "esri-leaflet-cluster",
"description": "Esri Leaflet plugin for visualizing Feature Layers as clusters with L.markercluster.",
"version": "2.1.0",
"version": "3.0.0",
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)",

@@ -10,29 +10,29 @@ "contributors": [

],
"dependencies": {
"esri-leaflet": "^2.0.0",
"leaflet": "^1.0.0",
"peerDependencies": {
"esri-leaflet": "*",
"leaflet": "*",
"leaflet.markercluster": "^1.0.0"
},
"devDependencies": {
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^7.1.3",
"chai": "3.5.0",
"gh-release": "^3.4.0",
"http-server": "^0.12.3",
"karma": "^4.4.1",
"karma-chai-sinon": "^0.1.3",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^2.0.2",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.1",
"karma-sourcemap-loader": "^0.3.7",
"@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",
"karma-coverage": "^2.2.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.3.8",
"mkdirp": "^0.5.1",
"mocha": "^5.2.0",
"node-sass": "^4.11.0",
"rollup": "^2.0.0",
"rollup-plugin-uglify": "^6.0.4",
"mocha": "^9.2.0",
"node-sass": "^7.0.1",
"rollup": "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
"semistandard": "^11.0.0",
"sinon": "^6.3.5",
"sinon-chai": "3.2.0",
"snazzy": "^8.0.0",
"sinon": "^13.0.1",
"sinon-chai": "3.7.0",
"snazzy": "^9.0.0",
"watch": "^1.0.2"

@@ -67,3 +67,2 @@ },

"lint": "semistandard | snazzy",
"prepublish": "npm run build",
"pretest": "npm run build",

@@ -70,0 +69,0 @@ "release": "./scripts/release.sh",

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

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

@@ -7,4 +7,4 @@

// use a Regex to preserve copyright text
config.plugins.push(uglify({ output: { comments: /Institute, Inc/ } }));
config.plugins.push(terser({ format: { comments: /Institute, Inc/ } }));
export default config;

@@ -42,5 +42,3 @@ # Esri Leaflet Cluster

<!-- Load Esri Leaflet Cluster from CDN -->
<script src="https://unpkg.com/esri-leaflet-cluster@2.0.0/dist/esri-leaflet-cluster.js"
integrity="sha512-mhpdD3igvv7A/84hueuHzV0NIKFHmp2IvWnY5tIdtAHkHF36yySdstEVI11JZCmSY4TCvOkgEoW+zcV/rUfo0A=="
crossorigin=""></script>
<script src="https://unpkg.com/esri-leaflet-cluster"></script>

@@ -57,7 +55,7 @@ <style>

<script>
var map = L.map('map').setView([45.526, -122.667], 15);
var map = L.map('map').setView([45.526, -122.667], 6);
L.esri.basemapLayer('Streets').addTo(map);
L.esri.Cluster.featureLayer({
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/arcgis/rest/services/Trimet_Transit_Stops/FeatureServer/0'
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0'
}).addTo(map);

@@ -110,3 +108,3 @@ </script>

You can also post issues on the [GIS Stackexchange](http://gis.stackexchange.com/questions/ask?tags=esri-leaflet,leaflet) an/or the [Esri Leaflet place](https://geonet.esri.com/discussion/create.jspa?sr=pmenu&containerID=1841&containerType=700&tags=esri-leaflet,leaflet) on GeoNet.
You can also post issues on the [GIS Stack Exchange](http://gis.stackexchange.com/questions/ask?tags=esri-leaflet,leaflet) an/or the [Esri Leaflet Community](https://community.esri.com/t5/esri-leaflet/ct-p/esri-leaflet).

@@ -113,0 +111,0 @@ ### Contributing

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 };

@@ -5,0 +7,0 @@ export var FeatureLayer = FeatureManager.extend({

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

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