Repository navigation
Add ['heatmap-density'] expression - #5350
Conversation
|
cc @mourner |
mourner
left a comment
There was a problem hiding this comment.
Looks good! Can you please fix the build so that I could merge to my branch? Also, do you want to look at the default values hack in a different PR or maybe look at it here if it's not too much work?
|
Oops, yep will fix. Re: default values hack -- I sorta think the existing hack is alright / involves the minimal amount of special-case code. Can we keep that as is? |
I mean, the requirement to have |
|
Oh, right, sorry! Yeah, let me try to tack on a fix here. |
|
@mourner when I remove the |
|
Heh, maybe you or me accidentally fixed this somehow in other commits :) |
* Add ['heatmap-density'] expression * Fix lint
* Add ['heatmap-density'] expression * Fix lint
* Add ['heatmap-density'] expression * Fix lint
* Add ['heatmap-density'] expression * Fix lint
* WIP dump heatmap layer * remove redundant heatmap attributes * cleanup heatmap style reference * stop-based heatmap color ramps * simplify heatmap debug page; remove weight scale * optimize heatmap texture caching logic * make sure no-data areas are always transparent * faster heatmap kernel calculation * fix heatmap blending issues around edges * saner heatmap color ramp defaults * introduce heatmap-intensity property * use texture class for heatmaps * fix bug with heatmap resizing * cache color ramp texture * hack to get rid of heatmap flicker * cache viewport buffer/vao * heatmap fallback when no half-floats available * fix flow errors and some caught bugs * update error message fixtures * Scale mesh to ensure it's large enough for kernel to drop to zero Also change kernel bandwidth from 5.0 to 3.0 * use a smaller heatmap zero for less artifacts * nicer heatmap debug page * add more heatmap code comments * more heatmap code cleanup * gracefully fallback on bad half-float framebuffer support * fix infinite loop in heatmap code * Add ['heatmap-density'] expression (#5350) * Add ['heatmap-density'] expression * Fix lint * better heatmap docs * fix heatmap docs generation * add heatmap render tests * clarify heatmap-density description * add a comment about overriding setPaintProperty * Special case handling for heatmap-color expression default values * add a test for heatmap color expression
This adds a
["heatmap-density"]expression and special-case handling when converting stop functions to use that instead of["zoom"]for theheatmap-colorstyle property.