deck.gl
deck.gl copied to clipboard
Parts of layer disappears on zoom and pan
Everything west of longitude 0 disappears on higher zooms and panning. I am using Mapboxlayer with Scatterplotlayer, Heatmaplayer and Columnlayer. Same problem with each. My scatterplotlayer looks like this:
this.scatterLayerSat = new MapboxLayer({
id: 'scatter_layer_sat',
type: ScatterplotLayer,
data,
pickable: true,
opacity: 0.1,
stroked: true,
filled: true,
radiusScale: 13000,
radiusMinPixels: 1,
radiusMaxPixels: 100,
lineWidthMinPixels: 0,
getPosition: d => d.centroid,
getFillColor: d => [48, 128, 0.1 * d.value * 255, 255],
});
}
Thank you!
Turns out that this happens when latitudes west of longitude 0 are >180, ie 359 instead of -1.