Skip to content

Commit

Permalink
Linear interpolation for heatmap-density and get-property -type inter…
Browse files Browse the repository at this point in the history
…polate expressions; fixes #93 (#94)
  • Loading branch information
akacarlyann authored and ryanbaumann committed Apr 21, 2018
1 parent 41a9cc3 commit b3bc6cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mapboxgl/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@
expression = ['interpolate', ['exponential', 1.2], ['zoom']]
}
else if (propertyValue == 'heatmap-density') {
expression = ['interpolate', ['exponential', 1.2], ['heatmap-density']]
expression = ['interpolate', ['linear'], ['heatmap-density']]
}
else {
expression = ['interpolate', ['exponential', 1.2], ['get', propertyValue]]
expression = ['interpolate', ['linear'], ['get', propertyValue]]
}

for (var i=0; i<stops.length; i++) {
Expand Down

0 comments on commit b3bc6cd

Please sign in to comment.