Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoomed data-grid shows gaps #86

Open
wahlatlas opened this issue Jun 19, 2023 · 1 comment
Open

Zoomed data-grid shows gaps #86

wahlatlas opened this issue Jun 19, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@wahlatlas
Copy link

Have to investigate further and create example
this is 100m-grid-data with wms background.

works as expected in this zoom level
adjacent100m

same area as above but zoomed in further. results in data grid showing gaps:
zoomed100m

@jgaffuri
Copy link
Contributor

I also observed this bug here: https://eurostat.github.io/gridviz/examples/styles/squarecolorwgl.html
It happens for the SquareColorWGLStyle style when the square get very large. I could not find a way to solve it. It seems there is a rounding happening when transferring data to webgl renderer... I will try to investigate again.

A workaround in the meantime is to use shapecolorsize-style which is based on canvas, only from the zoom levels were the bug appears. It is possible to define minZoom and maxZoom at style level. If the shift from webgl to canvas should happen at zoom level 5645, just define the layer styles stack as:

[
new gviz.SquareColorWGLStyle({
...
minZoom : 5645
}),
new gviz.ShapeColorSizeStyle({
...
maxZoom : 5645
})
]

In such a way, webGL will be used above zoom 5645, and canvas below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants