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

Setting the extent of the layer using the defined spatial_extent before adding to the map #300

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

Gpetrak
Copy link
Contributor

@Gpetrak Gpetrak commented Nov 27, 2024

This PR solves the issue #299 . When the user was trying to add a layer from a different SRID (e.g EPSG 2100), the final layer extent was set using the coordinates of WGS 84 (EPSG 4326). As a result the layer could not be found by using the zoom to layer option.
To solve this issue, I set the layer extent using the spatial_extent of the layer (which is well defined) right before the layer is added to the map.

@Gpetrak Gpetrak marked this pull request as ready for review November 27, 2024 09:27
@Gpetrak Gpetrak requested a review from giohappy November 27, 2024 09:27
@giohappy giohappy merged commit 3c0c242 into main Nov 27, 2024
3 checks passed
@giohappy giohappy deleted the ISSUE_299 branch November 27, 2024 14:46
@giohappy giohappy linked an issue Nov 28, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Incorrect retrieved geometry extent from WFS service
2 participants