Closed JakobMiksch closed 1 year ago
Thank you for raising the issue and the screenshot. The current implementation only works with the unpitched map.
We will have to get tile dimensions as bbox and then determine the pixel position of the click event relative to that bbox to make a valid getfeatureinfo request in this map state.
I am documenting my ideas on solving this here, one of my colleagues will take a look at fixing it.
@mapcomponents/react-maplibre version: The deployed version on 2023-04-26
Steps To Reproduce
The current behavior
The Request either fails or returns information of a wrong feature. In the screenshot below, I clicked on the tile "32296_5592" (lowest rectangle) but the response is "32312_5600" and apparently wrong
The expected behavior
The request also takes into account the tilted map.
Maybe this thread helps: https://gis.stackexchange.com/questions/307407/how-to-query-features-of-raster-layers-hosted-on-geoserver-that-are-added-to-map