deck.gl可以用openLayers代替mapbox吗?
deck.gl可以用openLayers代替mapbox吗?
@zhangzn3 deck.gl does not depend on mapbox so it should be possible. You'll want a react wrapper for openlayers, perhaps you could try something like react-openlayers.
Then just send the same lng,lat,zoom props to react-openlayers and the deck.gl component.
我deck.gl,openLayers设置成一样的lng,lat,zoom ,坐标竟然有偏差。。。
貌似只是纬度有偏差。。什么原因?
还有个问题,我看render后的DOM结构,mapBox地图在底层,deck.gl层覆盖在mapbox层上面,为什么onChangeViewport事件写在mapbox里而不是deck.gl层里? 怎么触发changeViewport的呢
Is there any example code to use react-openlayers in deck.gl?
Most helpful comment
@zhangzn3 deck.gl does not depend on mapbox so it should be possible. You'll want a react wrapper for openlayers, perhaps you could try something like react-openlayers.
Then just send the same
lng,lat,zoomprops to react-openlayers and the deck.gl component.