Closed itsdapi closed 1 month ago
nvm I found this working
render(): JSX.Element {
return (
<div className="_rlayers_RLayerVectorTile">
<RContext.Provider
value={
{
...this.context,
layer: this.ol,
vectortilelayer: this.ol,
rLayer: this,
// rLayerVectorTile: this
} as RContextType
}
>
{this.props.children}
</RContext.Provider>
</div>
);
}
Sorry for posting help in issues.
I am making a custom loader for PMTiles, but I am struggle to make the
<RStyle />
work. Currently I am passing the style to the VectorTile. My reference is the GeoTiff example.