Skip to content

Commit

Permalink
Explicitly set stencil mode (disabled) in heatmap texture copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick authored Jun 13, 2018
1 parent 5273e28 commit 7d079a7
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/render/draw_heatmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function renderTextureToMap(painter, layer) {
colorRampTexture.bind(gl.LINEAR, gl.CLAMP_TO_EDGE);

context.setDepthMode(DepthMode.disabled);
context.setStencilMode(StencilMode.disabled);

const program = painter.useProgram('heatmapTexture');

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": 8,
"metadata": {
"test": {
"height": 64,
"width": 64,
"description": "Contains two expected images (for ubyte-based rendering and half-float-based); one of them should pass depending on platform."
}
},
"center": [
13.418056,
52.4963
],
"zoom": 14,
"sources": {
"mapbox": {
"type": "vector",
"maxzoom": 14,
"tiles": [
"local://tiles/{z}-{x}-{y}.mvt"
]
}
},
"glyphs": "local://glyphs/{fontstack}/{range}.pbf",
"layers": [
{
"id": "background",
"type": "background",
"paint": {
"background-color": "white"
}
},
{
"id": "fill",
"type": "fill",
"source": "mapbox",
"source-layer": "building"
},
{
"id": "poi_heat",
"type": "heatmap",
"source": "mapbox",
"source-layer": "poi_label",
"paint": {}
}
]
}

0 comments on commit 7d079a7

Please sign in to comment.