Socket
Socket
Sign inDemoInstall

esri-leaflet-heatmap

Package Overview
Dependencies
6
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

dist/esri-leaflet-heatmap-debug.js.map

0

bower.json

@@ -0,0 +0,0 @@ {

23

CHANGELOG.md

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

## [2.0.1]
### Updated
* Updated dependencies and changed build-related settings to be consistent with Esri Leaflet ([#25](https://github.com/Esri/esri-leaflet-heatmap/pull/25))
### Fixed
* Do not use named exports from JSON ([info](https://webpack.js.org/migrate/5/#cleanup-the-code)) ([#25](https://github.com/Esri/esri-leaflet-heatmap/pull/25))
## [2.0.0]

@@ -21,12 +31,2 @@

### 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.
```js
clusterLayer.bindPopup(function (layer) {
return "attribute value is: " + layer.feature.properties.ATTRIBUTENAME;
})
```
## [2.0.0-beta.1]

@@ -82,3 +82,4 @@

[unreleased]: https://github.com/Esri/esri-leaflet-heatmap/compare/v2.0.0...HEAD
[unreleased]: https://github.com/Esri/esri-leaflet-heatmap/compare/v2.0.1...HEAD
[2.0.1]: https://github.com/Esri/esri-leaflet-heatmap/compare/v2.0.0...v2.0.1
[2.0.0]: https://github.com/Esri/esri-leaflet-heatmap/compare/v2.0.0-beta.1...v2.0.0

@@ -85,0 +86,0 @@ [2.0.0-beta.1]: https://github.com/Esri/esri-leaflet-heatmap/compare/v1.0.2...v2.0.0-beta.1

@@ -1,116 +0,203 @@

/* esri-leaflet-heatmap - v2.0.0 - Mon Aug 29 2016 20:03:56 GMT-0700 (PDT)
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
/* esri-leaflet-heatmap - v2.0.1 - Wed Mar 09 2022 08:41:29 GMT-0600 (Central Standard Time)
* Copyright (c) 2022 Environmental Systems Research Institute, Inc.
* Apache-2.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('leaflet'), require('esri-leaflet')) :
typeof define === 'function' && define.amd ? define(['exports', 'leaflet', 'esri-leaflet'], factory) :
(factory((global.L = global.L || {}, global.L.esri = global.L.esri || {}, global.L.esri.Heat = global.L.esri.Heat || {}),global.L,global.L.esri));
}(this, function (exports,L,esriLeaflet) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('leaflet'), require('esri-leaflet')) :
typeof define === 'function' && define.amd ? define(['exports', 'leaflet', 'esri-leaflet'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.L = global.L || {}, global.L.esri = global.L.esri || {}, global.L.esri.Heat = {}), global.L, global.L.esri));
})(this, (function (exports, L, esriLeaflet) { 'use strict';
L = 'default' in L ? L['default'] : L;
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var version = "2.0.0";
var L__default = /*#__PURE__*/_interopDefaultLegacy(L);
var FeatureLayer = esriLeaflet.FeatureManager.extend({
/**
* Constructor
*/
var name = "esri-leaflet-heatmap";
var description = "Esri Leaflet plugin for visualizing Feature Layers as heatmaps with L.heat.";
var version$1 = "2.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)"
];
var dependencies = {
leaflet: "^1.0.0-rc.3",
"leaflet.heat": "^0.2.0"
};
var peerDependencies = {
"esri-leaflet": ">2.3.0"
};
var devDependencies = {
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
chai: "4.3.6",
"chokidar-cli": "^3.0.0",
"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: "^1.0.4",
mocha: "^9.2.0",
"npm-run-all": "^4.1.5",
rollup: "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
semistandard: "^14.2.3",
sinon: "^13.0.1",
"sinon-chai": "3.7.0",
snazzy: "^9.0.0"
};
var homepage = "https://github.com/Esri/esri-leaflet-heatmap";
var jspm = {
registry: "npm",
format: "es6",
main: "src/HeatmapFeatureLayer.js"
};
var license = "Apache-2.0";
var main = "dist/esri-leaflet-heatmap-debug.js";
var readmeFilename = "README.md";
var repository = {
type: "git",
url: "git+https://github.com:Esri/esri-leaflet-heatmap.git"
};
var scripts = {
prebuild: "mkdirp dist",
build: "rollup -c profiles/debug.js & rollup -c profiles/production.js",
lint: "semistandard src/*.js && semistandard spec/*.js | snazzy",
fix: "semistandard --fix",
pretest: "npm run build",
release: "node ./scripts/release.sh",
"start-watch": "chokidar src -c \"npm run build\"",
start: "run-p start-watch serve",
serve: "http-server -p 5000 -c-1 -o",
test: "npm run lint && karma start"
};
var packageInfo = {
name: name,
description: description,
version: version$1,
author: author,
contributors: contributors,
dependencies: dependencies,
peerDependencies: peerDependencies,
devDependencies: devDependencies,
homepage: homepage,
"jsnext:main": "src/HeatmapFeatureLayer.js",
jspm: jspm,
license: license,
main: main,
readmeFilename: readmeFilename,
repository: repository,
scripts: scripts
};
initialize: function (options) {
esriLeaflet.FeatureManager.prototype.initialize.call(this, options);
var version = packageInfo.version;
options = L.setOptions(this, options);
var FeatureLayer = esriLeaflet.FeatureManager.extend({
/**
* Constructor
*/
this._cache = {};
this._active = {};
initialize: function (options) {
esriLeaflet.FeatureManager.prototype.initialize.call(this, options);
this.heat = window.L.heatLayer([], options);
},
options = L__default["default"].setOptions(this, options);
/**
* Layer Interface
*/
this._cache = {};
this._active = {};
onAdd: function (map) {
esriLeaflet.FeatureManager.prototype.onAdd.call(this, map);
this._map.addLayer(this.heat);
},
this.heat = window.L.heatLayer([], options);
},
onRemove: function (map) {
esriLeaflet.FeatureManager.prototype.onRemove.call(this, map);
this._map.removeLayer(this.heat);
},
/**
* Layer Interface
*/
/**
* Feature Managment Methods
*/
onAdd: function (map) {
esriLeaflet.FeatureManager.prototype.onAdd.call(this, map);
this._map.addLayer(this.heat);
},
createLayers: function (features) {
for (var i = features.length - 1; i >= 0; i--) {
var geojson = features[i];
var id = geojson.id;
var latlng = new L.LatLng(geojson.geometry.coordinates[1], geojson.geometry.coordinates[0]);
this._cache[id] = latlng;
onRemove: function (map) {
esriLeaflet.FeatureManager.prototype.onRemove.call(this, map);
this._map.removeLayer(this.heat);
},
// add the layer if it is within the time bounds or our layer is not time enabled
if (!this._active[id] && (!this.options.timeField || (this.options.timeField && this._featureWithinTimeRange(geojson)))) {
this._active[id] = latlng;
this.heat._latlngs.push(latlng);
}
}
/**
* Feature Managment Methods
*/
this.heat.redraw();
},
createLayers: function (features) {
for (var i = features.length - 1; i >= 0; i--) {
var geojson = features[i];
var id = geojson.id;
var latlng = new L__default["default"].LatLng(geojson.geometry.coordinates[1], geojson.geometry.coordinates[0]);
this._cache[id] = latlng;
addLayers: function (ids) {
for (var i = ids.length - 1; i >= 0; i--) {
var id = ids[i];
if (!this._active[id]) {
var latlng = this._cache[id];
this.heat._latlngs.push(latlng);
this._active[id] = latlng;
}
}
this.heat.redraw();
},
// add the layer if it is within the time bounds or our layer is not time enabled
if (!this._active[id] && (!this.options.timeField || (this.options.timeField && this._featureWithinTimeRange(geojson)))) {
this._active[id] = latlng;
this.heat._latlngs.push(latlng);
}
}
removeLayers: function (ids, permanent) {
var newLatLngs = [];
for (var i = ids.length - 1; i >= 0; i--) {
var id = ids[i];
if (this._active[id]) {
delete this._active[id];
}
if (this._cache[id] && permanent) {
delete this._cache[id];
}
}
this.heat.redraw();
},
for (var latlng in this._active) {
newLatLngs.push(this._active[latlng]);
}
addLayers: function (ids) {
for (var i = ids.length - 1; i >= 0; i--) {
var id = ids[i];
if (!this._active[id]) {
var latlng = this._cache[id];
this.heat._latlngs.push(latlng);
this._active[id] = latlng;
}
}
this.heat.redraw();
},
this.heat.setLatLngs(newLatLngs);
},
removeLayers: function (ids, permanent) {
var newLatLngs = [];
for (var i = ids.length - 1; i >= 0; i--) {
var id = ids[i];
if (this._active[id]) {
delete this._active[id];
}
if (this._cache[id] && permanent) {
delete this._cache[id];
}
}
setOptions: function (options) {
this.heat.setOptions(options);
},
for (var latlng in this._active) {
newLatLngs.push(this._active[latlng]);
}
redraw: function () {
this.heat.redraw();
}
this.heat.setLatLngs(newLatLngs);
},
});
setOptions: function (options) {
this.heat.setOptions(options);
},
function featureLayer (options) {
return new FeatureLayer(options);
}
redraw: function () {
this.heat.redraw();
}
exports.FeatureLayer = FeatureLayer;
exports.featureLayer = featureLayer;
exports['default'] = featureLayer;
exports.VERSION = version;
});
function featureLayer (options) {
return new FeatureLayer(options);
}
exports.FeatureLayer = FeatureLayer;
exports.VERSION = version;
exports["default"] = featureLayer;
exports.featureLayer = featureLayer;
Object.defineProperty(exports, '__esModule', { value: true });
}));
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNyaS1sZWFmbGV0LWhlYXRtYXAtZGVidWcuanMiLCJzb3VyY2VzIjpbIi4uL3BhY2thZ2UuanNvbiIsIi4uL3NyYy9IZWF0bWFwRmVhdHVyZUxheWVyLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIntcbiAgXCJuYW1lXCI6IFwiZXNyaS1sZWFmbGV0LWhlYXRtYXBcIixcbiAgXCJkZXNjcmlwdGlvblwiOiBcIkVzcmkgTGVhZmxldCBwbHVnaW4gZm9yIHZpc3VhbGl6aW5nIEZlYXR1cmUgTGF5ZXJzIGFzIGhlYXRtYXBzIHdpdGggTC5oZWF0LlwiLFxuICBcInZlcnNpb25cIjogXCIyLjAuMFwiLFxuICBcImF1dGhvclwiOiBcIlBhdHJpY2sgQXJsdCA8cGFybHRAZXNyaS5j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FBQSxHQUFHOztBQUVILENBQUEsQ0FBQyxDQUFDLENBQUM7O0FBRUgsQ0FBTyxTQUFTLFlBQVksRUFBRSxPQUFPLEVBQUU7QUFDdkMsQ0FBQSxFQUFFLE9BQU8sSUFBSSxZQUFZLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDbkMsQ0FBQSxDQUFDOzs7Ozs7OyJ9
//# sourceMappingURL=esri-leaflet-heatmap-debug.js.map

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

/* esri-leaflet-heatmap - v2.0.0 - Mon Aug 29 2016 20:03:56 GMT-0700 (PDT)
* Copyright (c) 2016 Environmental Systems Research Institute, Inc.
/* esri-leaflet-heatmap - v2.0.1 - Wed Mar 09 2022 08:41:30 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.L=e.L||{},e.L.esri=e.L.esri||{},e.L.esri.Heat=e.L.esri.Heat||{}),e.L,e.L.esri)}(this,function(e,t,i){"use strict";function a(e){return new s(e)}t="default"in t?t.default:t;var r="2.0.0",s=i.FeatureManager.extend({initialize:function(e){i.FeatureManager.prototype.initialize.call(this,e),e=t.setOptions(this,e),this._cache={},this._active={},this.heat=window.L.heatLayer([],e)},onAdd:function(e){i.FeatureManager.prototype.onAdd.call(this,e),this._map.addLayer(this.heat)},onRemove:function(e){i.FeatureManager.prototype.onRemove.call(this,e),this._map.removeLayer(this.heat)},createLayers:function(e){for(var i=e.length-1;i>=0;i--){var a=e[i],r=a.id,s=new t.LatLng(a.geometry.coordinates[1],a.geometry.coordinates[0]);this._cache[r]=s,!this._active[r]&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(a))&&(this._active[r]=s,this.heat._latlngs.push(s))}this.heat.redraw()},addLayers:function(e){for(var t=e.length-1;t>=0;t--){var i=e[t];if(!this._active[i]){var a=this._cache[i];this.heat._latlngs.push(a),this._active[i]=a}}this.heat.redraw()},removeLayers:function(e,t){for(var i=[],a=e.length-1;a>=0;a--){var r=e[a];this._active[r]&&delete this._active[r],this._cache[r]&&t&&delete this._cache[r]}for(var s in this._active)i.push(this._active[s]);this.heat.setLatLngs(i)},setOptions:function(e){this.heat.setOptions(e)},redraw:function(){this.heat.redraw()}});e.FeatureLayer=s,e.featureLayer=a,e.default=a,e.VERSION=r});
//# sourceMappingURL=esri-leaflet-heatmap.js.map
!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.Heat={}),e.L,e.L.esri)}(this,(function(e,t,i){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(t),s="2.0.1",n=i.FeatureManager.extend({initialize:function(e){i.FeatureManager.prototype.initialize.call(this,e),e=r.default.setOptions(this,e),this._cache={},this._active={},this.heat=window.L.heatLayer([],e)},onAdd:function(e){i.FeatureManager.prototype.onAdd.call(this,e),this._map.addLayer(this.heat)},onRemove:function(e){i.FeatureManager.prototype.onRemove.call(this,e),this._map.removeLayer(this.heat)},createLayers:function(e){for(var t=e.length-1;t>=0;t--){var i=e[t],a=i.id,s=new r.default.LatLng(i.geometry.coordinates[1],i.geometry.coordinates[0]);this._cache[a]=s,!this._active[a]&&(!this.options.timeField||this.options.timeField&&this._featureWithinTimeRange(i))&&(this._active[a]=s,this.heat._latlngs.push(s))}this.heat.redraw()},addLayers:function(e){for(var t=e.length-1;t>=0;t--){var i=e[t];if(!this._active[i]){var a=this._cache[i];this.heat._latlngs.push(a),this._active[i]=a}}this.heat.redraw()},removeLayers:function(e,t){for(var i=[],a=e.length-1;a>=0;a--){var r=e[a];this._active[r]&&delete this._active[r],this._cache[r]&&t&&delete this._cache[r]}for(var s in this._active)i.push(this._active[s]);this.heat.setLatLngs(i)},setOptions:function(e){this.heat.setOptions(e)},redraw:function(){this.heat.redraw()}});function o(e){return new n(e)}e.FeatureLayer=n,e.VERSION=s,e.default=o,e.featureLayer=o,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=esri-leaflet-heatmap.js.map

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

module.exports = function (config) {
config.set({
var configuration = {
// base path that will be used to resolve all patterns (eg. files, exclude)

@@ -29,3 +29,5 @@ basePath: '',

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

@@ -35,3 +37,3 @@ // test results reporter to use

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

@@ -46,3 +48,3 @@ // web server port

// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,
logLevel: config.LOG_WARN,

@@ -55,7 +57,7 @@ // enable / disable watching file and executing tests whenever any file changes

browsers: [
// 'Chrome',
'Chrome'
// 'ChromeCanary',
// 'Firefox',
// 'Safari',
'PhantomJS'
// 'PhantomJS'
],

@@ -74,3 +76,5 @@

}
});
};
config.set(configuration);
};
{
"name": "esri-leaflet-heatmap",
"description": "Esri Leaflet plugin for visualizing Feature Layers as heatmaps with L.heat.",
"version": "2.0.0",
"version": "2.0.1",
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)",

@@ -11,31 +11,31 @@ "contributors": [

"dependencies": {
"esri-leaflet": "^2.0.0",
"leaflet": "^1.0.0-rc.3",
"leaflet.heat": "^0.2.0"
},
"peerDependencies": {
"esri-leaflet": ">2.3.0"
},
"devDependencies": {
"chai": "2.3.0",
"gh-release": "^2.0.0",
"http-server": "^0.9.0",
"isparta": "^3.0.3",
"istanbul": "^0.4.2",
"karma": "^0.12.24",
"karma-chai-sinon": "^0.1.3",
"karma-coverage": "^0.5.3",
"karma-mocha": "^0.1.0",
"karma-mocha-reporter": "^0.2.5",
"karma-phantomjs-launcher": "^0.1.4",
"karma-sourcemap-loader": "^0.3.5",
"mkdirp": "^0.5.1",
"node-sass": "^3.2.0",
"phantomjs": "^1.9.17",
"rollup": "^0.25.4",
"rollup-plugin-json": "^2.0.0",
"rollup-plugin-node-resolve": "^1.4.0",
"rollup-plugin-uglify": "^0.3.1",
"semistandard": "^7.0.2",
"sinon": "^1.11.1",
"sinon-chai": "2.7.0",
"snazzy": "^2.0.1",
"watch": "^0.17.1"
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"chai": "4.3.6",
"chokidar-cli": "^3.0.0",
"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": "^1.0.4",
"mocha": "^9.2.0",
"npm-run-all": "^4.1.5",
"rollup": "^2.67.2",
"rollup-plugin-terser": "^7.0.2",
"semistandard": "^14.2.3",
"sinon": "^13.0.1",
"sinon-chai": "3.7.0",
"snazzy": "^9.0.0"
},

@@ -54,3 +54,3 @@ "homepage": "https://github.com/Esri/esri-leaflet-heatmap",

"type": "git",
"url": "git+https://github.com:Esri/esri-leaflet-heatmap.git"
"url": "git@github.com:Esri/esri-leaflet-heatmap.git"
},

@@ -61,8 +61,10 @@ "scripts": {

"lint": "semistandard src/*.js && semistandard spec/*.js | snazzy",
"prepublish": "npm run build",
"fix": "semistandard --fix",
"pretest": "npm run build",
"release": "./scripts/release.sh",
"start": "watch 'npm run build' src & http-server -p 6789 -c-1 -o",
"release": "node ./scripts/release.sh",
"start-watch": "chokidar src -c \"npm run build\"",
"start": "run-p start-watch serve",
"serve": "http-server -p 5000 -c-1 -o",
"test": "npm run lint && karma start"
}
}
import config from '../node_modules/esri-leaflet/profiles/base.js';
config.entry = 'src/HeatmapFeatureLayer.js';
config.moduleName = 'L.esri.Heat';
config.input = 'src/HeatmapFeatureLayer.js';
config.output.name = 'L.esri.Heat';
export default config;
export default config;
import config from './base.js';
config.dest = 'dist/esri-leaflet-heatmap-debug.js';
config.sourceMap = 'inline';
config.output.file = 'dist/esri-leaflet-heatmap-debug.js';
config.output.sourcemap = true;
export default config;
export default config;

@@ -1,10 +0,9 @@

import uglify from 'rollup-plugin-uglify';
import { terser } from 'rollup-plugin-terser';
import config from './base.js';
config.dest = 'dist/esri-leaflet-heatmap.js';
config.sourceMap = 'dist/esri-leaflet-heatmap.js.map';
config.output.file = 'dist/esri-leaflet-heatmap.js';
// 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;
export default config;

@@ -8,3 +8,3 @@ # Esri Leaflet Heatmap Feature Layer

### Demos
A live demo can be found on the [Esri Leaflet website](http://esri.github.io/esri-leaflet/examples/visualize-points-as-a-heatmap.html).
A live demo can be found on the [Esri Leaflet website](https://esri.github.io/esri-leaflet/examples/visualize-points-as-a-heatmap.html).

@@ -14,3 +14,3 @@ ### Example

<a href="http://esri.github.io/esri-leaflet/examples/visualize-points-as-a-heatmap.html">
<a href="https://esri.github.io/esri-leaflet/examples/visualize-points-as-a-heatmap.html">
<img src="https://github.com/Esri/esri-leaflet-heatmap/raw/master/esri-leaflet-heatmap-feature-layer.jpg" alt="Demo">

@@ -33,4 +33,4 @@ </a>

<!-- Esri Leaflet and Esri Leaflet Heatmap -->
<script src="https://unpkg.com/esri-leaflet@2.0.2"></script>
<script src="https://unpkg.com/esri-leaflet-heatmap@2.0.0"></script>
<script src="https://unpkg.com/esri-leaflet@3"></script>
<script src="https://unpkg.com/esri-leaflet-heatmap@2"></script>

@@ -47,8 +47,8 @@ <style>

<script>
var map = L.map('map').setView([ 40.706, -73.926], 14);
var map = L.map('map').setView([41.759, -88.157], 12);
L.esri.basemapLayer('Gray').addTo(map);
L.esri.Heat.featureLayer({
url: 'https://services.arcgis.com/rOo16HdIMeOBI4Mb/ArcGIS/rest/services/Graffiti_Reports/FeatureServer/0',
radius: 12
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/CommunityAddressing/MapServer/0',
radius: 10
}).addTo(map);

@@ -63,3 +63,3 @@ </script>

A full [API Reference](http://esri.github.io/esri-leaflet/api-reference/) and [sample code](http://esri.github.io/esri-leaflet/examples/) can be found at the [Esri Leaflet](http://esri.github.io/esri-leaflet/) website.
A full [API Reference](https://esri.github.io/esri-leaflet/api-reference/) and [sample code](https://esri.github.io/esri-leaflet/examples/) can be found at the [Esri Leaflet](https://esri.github.io/esri-leaflet/) website.

@@ -88,7 +88,6 @@ ### Development Roadmap

* [Importing Data Into Feature Services](https://developers.arcgis.com/tools/csv-to-feature-service/)
* [ArcGIS for Developers](http://developers.arcgis.com)
* [ArcGIS REST Services](http://resources.arcgis.com/en/help/arcgis-rest-api/)
* [@Esri](http://twitter.com/esri)
* [@EsriPDX](http://twitter.com/esripdx)
* [Importing Data Into Feature Services](https://doc.arcgis.com/en/arcgis-online/manage-data/publish-features.htm#GUID-DD47C642-38B4-4645-801D-2866FE90BF73)
* [ArcGIS for Developers](https://developers.arcgis.com/)
* [ArcGIS REST Services](https://developers.arcgis.com/rest/)
* [@Esri](https://twitter.com/esri)

@@ -101,3 +100,3 @@ ### Issues

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 Stackexchange](https://gis.stackexchange.com/questions/ask?tags=esri-leaflet,leaflet) and/or the [Esri Leaflet place](https://geonet.esri.com/discussion/create.jspa?sr=pmenu&containerID=1841&containerType=700&tags=esri-leaflet,leaflet) on GeoNet.

@@ -104,0 +103,0 @@ ### Contributing

@@ -0,0 +0,0 @@ /* global L beforeEach describe expect it */

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

export { version as VERSION } from '../package.json';
import L from 'leaflet';
import { FeatureManager } from 'esri-leaflet';
import packageInfo from '../package.json';
var version = packageInfo.version;
export { version as VERSION };

@@ -6,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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc