'rotating a Deck.gl point cloud layer on Mapbox
Im trying to align a deck.gl PointCloud layer with a location on Mapbox. I tried modifying the position values and it's working but I was wondering if there is another simpler way to modify the layer orientation instead of modifying the data.
I used this code to define the layer :
const pointsLayer = new deck.MapboxLayer({
id: 'points',
type: deck.PointCloudLayer,
data: dataArray,
pickable: false,
coordinateSystem: deck.COORDINATE_SYSTEM.METER_OFFSETS,
coordinateOrigin: [25, 55],
pointSize: 1,
getPosition: d => d.position,
getColor: d => d.color,
});
I couldn't find any Prop in the documentation that achieves that goal
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
