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
I create custom layer(extend SolidPolygonLayer), want to change top polygon by texture, however it not work
this is code
class CustomLayer extends SolidPolygonLayer {
initializeState() {
super.initializeState()
this.state = {
...this.state,
// Add a new property to the state
}
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I create custom layer(extend SolidPolygonLayer), want to change top polygon by texture, however it not work
this is code
class CustomLayer extends SolidPolygonLayer {
initializeState() {
super.initializeState()
this.state = {
...this.state,
// Add a new property to the state
}
}
protected _getModels() {
const { id, filled, extruded } = this.props
}
getShaders(type: any) {
const shaders = super.getShaders(type)
}
}
Beta Was this translation helpful? Give feedback.
All reactions