{"_id":"@appearhere/hexgrid-heatmap","_rev":"29-a2545c9d9ac716a9c47549b4e63f2f8f","name":"@appearhere/hexgrid-heatmap","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@appearhere/hexgrid-heatmap","version":"1.0.0","author":{"url":"http://samkronick.com","name":"Sam Kronick","email":"sam.kronick@mapbox.com"},"license":"ISC","_id":"@appearhere/hexgrid-heatmap@1.0.0","maintainers":[{"name":"farazcsk","email":"farazcsk@gmail.com"}],"homepage":"https://github.com/kronick/HexgridHeatmap#readme","bugs":{"url":"https://github.com/kronick/HexgridHeatmap/issues"},"dist":{"shasum":"6cd12b39f5d349f583d538c00341d0aeb9c192ba","tarball":"https://registry.npmjs.org/@appearhere/hexgrid-heatmap/-/hexgrid-heatmap-1.0.0.tgz","integrity":"sha512-BZZN0LFloGDDKNLJP4Culvt3+zih89J8CzDdygTWfytbtIYLptCCC5mYjJ8OMmQhyYg3216kjkr8PEo30vPiXg==","signatures":[{"sig":"MEUCIBkYmpnRmz00qmqH3Pk6kZClRc5dMzEjvw/KikDHXGepAiEA7CO76OPXd26Of+smymxAmcA6aeohgK+3/qoBCryfNsw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"HexgridHeatmap.js","gitHead":"77f111688a948b011b3e778d9a8544759fdc6f14","scripts":{"dev":"watchify index.js -o dist/HexgridHeatmap.js --verbose","test":"echo \"Error: no test specified\" && exit 1","build":"browserify index.js -o dist/HexgridHeatmap.js"},"_npmUser":{"name":"farazcsk","email":"farazcsk@gmail.com"},"repository":{"url":"git+https://github.com/kronick/HexgridHeatmap.git","type":"git"},"_npmVersion":"5.0.3","description":"A hexgrid-based heatmap layer for your Mapbox GL JS map","directories":{},"_nodeVersion":"8.1.4","dependencies":{"rbush":"^2.0.1","@turf/center":"^3.10.3","@turf/distance":"^3.10.3","@turf/hex-grid":"^3.10.3","@turf/destination":"^3.10.3"},"parentVersion":"0.1.2","_npmOperationalInternal":{"tmp":"tmp/hexgrid-heatmap-1.0.0.tgz_1503321100281_0.5871711447834969","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@appearhere/hexgrid-heatmap","version":"1.0.1","author":{"url":"http://samkronick.com","name":"Sam Kronick","email":"sam.kronick@mapbox.com"},"license":"ISC","_id":"@appearhere/hexgrid-heatmap@1.0.1","maintainers":[{"name":"farazcsk","email":"farazcsk@gmail.com"},{"name":"stevesmith2609","email":"steve.smith@appearhere.co.uk"},{"name":"marmaduke","email":"nick@appearhere.co.uk"},{"name":"rdjpalmer","email":"rich@rdjpalmer.com"}],"homepage":"https://github.com/kronick/HexgridHeatmap#readme","bugs":{"url":"https://github.com/kronick/HexgridHeatmap/issues"},"dist":{"shasum":"97a580281fd89fb36661a44b5ea59ae18035b113","tarball":"https://registry.npmjs.org/@appearhere/hexgrid-heatmap/-/hexgrid-heatmap-1.0.1.tgz","integrity":"sha512-foiG1Q7CoHz7vWFpQaKyhQAESlbmaLmRufBdaQGhLuJtpS+d92hf8Tm7jIembF4jp7rzreaoIcklxtzXf+hsGQ==","signatures":[{"sig":"MEQCICOdJq8tJpuLC9iyylYECkVEWj4j3uQpDZg/D/V1BcHNAiB79nskGEQoimqBpojoMF+ObvGThnaIu7w0+cdXul9hUQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFngCRA9TVsSAnZWagAAfRkP/R7249AUWzhUnRhasf6W\nS9fnZ+wfhSVxyNLHdJl0q4iIt8uIRNO+sFbX0a5kkK81cO/Ah++ZozroEuEb\n8Sw1Eq80Me2WtASPgudbJO8FzPmXR/g8GFzHDPfpY1E0UM+NF+Lyr2nxNBNT\nrdVsA1/M8tkrrH1zdwh50uP29IKS2h75aSn7IMj40Qj3/5e+9X1JhcPUZEvb\nQ1GKh4ofwfxHeGyqs0kVYl76MlZt7t05WEzCy+jde/EQCy7FwDHgq2+0CUHo\nAeHhrtdhZlVdtc+sbxg2Pmp/J8wHy9EqXYYRPjBY1vnYqmGtJP3IEWJVgN4R\n03Z3R1mmXx2BBoruFKpGKIAYJmvDOsXGOTehsaZbgeIM2z6q0v4DBo5oiYW5\nfdswPQdgiA6S2aJufpe2VtihyfQu3YZu/9Yl7D65/jUI9rbyIbtiv8D39QHS\nTvvMV9PWDkeBg3wzLCruZZEDnbPORlm37mAQUp0c9YsFVUEmSWfEcV9xXMLm\nnCw8F36RZbabwR7PVTGAMOtSH8Xm79JcBTU0uft/LpUTzKaJEcRGLIwyZGvS\nqTNVGxaAw2E9zUrnywEtsMYCC6Ia3ZHKg1Klas2pcwbsRcOa511Q6hBkRCAe\ntF2t8oyBP9KYhJnqDQPOEITgnkisiPzKNx2WJgZDNsUbpQTrXLc0ENu7sZQ4\nxyQh\r\n=+NH0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"HexgridHeatmap.js","gitHead":"656ccb92343d35538f8326e08e86c102ee5115e0","scripts":{"dev":"watchify index.js -o dist/HexgridHeatmap.js --verbose","test":"echo \"Error: no test specified\" && exit 1","build":"browserify index.js -o dist/HexgridHeatmap.js"},"_npmUser":{"name":"farazcsk","email":"farazcsk@gmail.com"},"repository":{"url":"git+https://github.com/kronick/HexgridHeatmap.git","type":"git"},"_npmVersion":"5.0.3","description":"A hexgrid-based heatmap layer for your Mapbox GL JS map","directories":{},"_nodeVersion":"8.1.4","dependencies":{"rbush":"^2.0.1","@turf/center":"^3.10.3","@turf/distance":"^3.10.3","@turf/hex-grid":"^3.10.3","@turf/destination":"^3.10.3"},"parentVersion":"0.1.2","_npmOperationalInternal":{"tmp":"tmp/hexgrid-heatmap-1.0.1.tgz_1503658071433_0.014572200365364552","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-08-21T13:11:42.083Z","modified":"2024-08-15T17:42:58.450Z","1.0.0":"2017-08-21T13:11:42.083Z","1.0.1":"2017-08-25T10:47:53.334Z"},"bugs":{"url":"https://github.com/kronick/HexgridHeatmap/issues"},"author":{"url":"http://samkronick.com","name":"Sam Kronick","email":"sam.kronick@mapbox.com"},"license":"ISC","homepage":"https://github.com/kronick/HexgridHeatmap#readme","repository":{"url":"git+https://github.com/kronick/HexgridHeatmap.git","type":"git"},"description":"A hexgrid-based heatmap layer for your Mapbox GL JS map","maintainers":[{"email":"tech@appearhere.co.uk","name":"appearheretech"},{"email":"janie.amero@gmail.com","name":"jamero102"}],"readme":"## Hexgrid-based vector heatmaps for your Mapbox GL JS Maps\n\n![](https://github.com/kronick/HexgridHeatmap/raw/master/docs/hexgrid-heatmap.png)\n\n\n### Usage\nSee the [examples directory](examples/index.html) for an example of usage. You will need to provide your own Mabox access token to view the map.\n\nHere's how it works:\n\n- Create an instance of `HexgridHeatmap`. It will automatically add the necessary layer and events to the specified map:\n\n```\nvar heatmap = new HexgridHeatmap(map, \"hexgrid-heatmap\", \"waterway-label\");\n```\n\n- You can control the intensity and spread of the points:\n\n```\nheatmap.setIntensity(15);\nheatmap.setSpread(0.3);\n```\n\n- Feed in a GeoJSON `FeatureCollection` full of points to map\n\n```\nheatmap.setData(sightseeingPOIs);\n```\n\n- Manually call `update()` after changing settings. The heatmap will automatically call update() when moving and zooming the map.\n\n```\nheatmap.update();\n```\n\n- You can set your own color palette using stops conforming to the Mapbox GL style spec:\n\n```\nheatmap.setColorStops([\n    [0, \"rgba(0,185,243,0)\"],\n    [50, \"rgba(0,185,243,0.5)\"],\n    [130, \"rgba(255,223,0,0.6)\"],\n    [200, \"rgba(255,105,0,0.6)\"]\n]);\n```\n","readmeFilename":"README.md"}