Merge branch 'heatmap-fix' into 'master'

Heatmap fix



See merge request !15
This commit is contained in:
thinkinggis 2019-03-18 11:59:09 +08:00
commit 9d67daabc5
4 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ scene.on('loaded', () => {
.source(data)
.size('mag', [ 0, 1 ]) // weight映射通道
.style({
intensity: 2,
intensity: 100,
radius: 30,
rampColors: {
colors: [ 'rgba(33,102,172,0.0)', 'rgb(103,169,207)', 'rgb(209,229,240)', 'rgb(253,219,199)', 'rgb(239,138,98)', 'rgb(178,24,43,1.0)' ],

View File

@ -1,6 +1,6 @@
{
"name": "@antv/l7",
"version": "1.1.1",
"version": "1.1.3",
"description": "Large-scale WebGL-powered Geospatial Data Visualization",
"main": "build/l7.js",
"browser": "build/l7.js",

View File

@ -58,7 +58,7 @@ export default class HeatMapLayer extends Layer {
afterRender() {
if (this.shapeType !== 'grid' && this.shapeType !== 'hexagon') {
// updateIntensityPass(this);
updateIntensityPass(this);
}
}

View File

@ -4,8 +4,7 @@ const pkg = require('./package.json');
module.exports = {
devtool: 'cheap-source-map',
entry: {
l7: './src/index.js',
three: './src/core/three.js'
l7: './src/index.js'
},
output: {
filename: '[name].js',