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

Weird behavior when showing WMS layers in 2.20 #1204

Open
mattiatibu opened this issue Jun 12, 2024 · 2 comments
Open

Weird behavior when showing WMS layers in 2.20 #1204

mattiatibu opened this issue Jun 12, 2024 · 2 comments

Comments

@mattiatibu
Copy link

Hi, I’m using ol-cesium to add some layers to a map but in the 3d view the WMS layers don’t appear.
I’m using Angular 17 and ol-cesium 2.20

The map projection is the default epsg:3857 and the layers are in epsg:4326, so they are reprojected by openlayers, it worked very well while using ol-cesium 2.19.3 but the layers don’t appear correctly or don’t appear at all after updating ol-cesium because the library tries to obtain tiles with the wrong bounding box from geoserver. It happens with WMS layers with the geoserver default style, a custom style configured in geoserver or just raster tilesets.

@mattiatibu
Copy link
Author

I've found a workaround , by changing the projection of my layer to EPSG:3857 in the openlayers layer configuration, the layer appears correctly and the bounding box requested is right but I still need layers in EPSG:4326 for my project, is there a better solution to solve this issue?

@gberaudo
Copy link
Member

Hi @mattiatibu , there were some changes lately in the way WMS are loaded.
In the past we only supported converting WMS using default load functions.
See #1190
It is possible to specify the load function you want used in 3D. You may want to experiment with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants