Commit d376851f authored by alain's avatar alain 🐙
Browse files

fix offsets

parent 7f980fc4
......@@ -130,7 +130,8 @@ class App extends React.Component {
deckLayers[layer][source.name] = {
layerDefinition,
source,
data: (previousData.length > 0 ? doOffsets([...previousData, data]) : data)
//data: (previousData.length > 0 ? doOffsets([...previousData, data]) : data)
data: doOffsets([...previousData, data])
}
this.setState({
......@@ -236,6 +237,8 @@ class App extends React.Component {
const { viewport, layers, selectedCenter, deckLayers, loading, loadingError } = this.state
const { pitchMax, zoomMax, zoomMin } = mapControlSettings
//console.log(viewport)
return (
<div id="app">
<MapGL { ...viewport } width="100%" height="100%" maxPitch={pitchMax} maxZoom={zoomMax} minZoom={zoomMin} onViewportChange={ this.onViewportChange } mapStyle={mapStyle} onTransitionStart={() => { this.setTransitionState(true) } } onTransitionEnd={() => { this.setTransitionState(false) } }>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment