deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

Parts of layer disappears on zoom and pan

Open FredrikHolsten opened this issue 5 years ago • 1 comments

decklayer 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!

FredrikHolsten avatar Oct 06 '21 06:10 FredrikHolsten

Turns out that this happens when latitudes west of longitude 0 are >180, ie 359 instead of -1.

FredrikHolsten avatar Oct 07 '21 07:10 FredrikHolsten