You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const what = { ...props, data: undefined };
return new BitmapLayer(what as any, {
image: props.data,
bounds: [west, south, east, north]
});
or else i get this error
deck.js:59 deck: initialization of BitmapLayer({id: 'SurfaceTemperatureCurrent-6-10-5'}): count(): argument not a container Error: count(): argument not a container
at count (count.js:24:1)
at BitmapLayer.getNumInstances (layer.js:374:17)
at BitmapLayer._updateAttributes (layer.js:590:31)
at BitmapLayer._postUpdate (layer.js:1045:10)
at BitmapLayer._update (layer.js:855:12)
at BitmapLayer._initialize (layer.js:796:10)
at LayerManager._initializeLayer (layer-manager.js:240:1)
at LayerManager._updateSublayersRecursively (layer-manager.js:209:1)
at LayerManager._updateSublayersRecursively (layer-manager.js:223:1)
at LayerManager._updateLayers (layer-manager.js:174:1)
props contains a data field that has to be passed to BitmapLayer's image prop instead of data, hence the overriding of data: null in the documentation's example. That is not a bug.
Link
https://deck.gl/docs/api-reference/geo-layers/tile-layer
Description
The section for
renderSubLayers()
does not work with typescript, also it uses thebbox
property that is marked as@Deprecated
.In typescript you have to specify
props.tile as any
. Also theBitMapLayer
argumentprops
throws an error.The text was updated successfully, but these errors were encountered: