-
Notifications
You must be signed in to change notification settings - Fork 0
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
Centering LeafletMap getTileUrl() #22
Labels
bug
Something isn't working
Comments
Test code using Leaflet's built-in
|
Center tile selections are temporarily working in #23 but require a full layer reload to update. Next step is to add a prop to trigger a reload when the drawer is opened in the wms-viewer. |
The addition of the crosshair.toggled attribute provides the update trigger in componentDidUpdate(), fully resolving the issue in #23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The getTileUrl() call in LeafletMap currently returns a tile that is not centered in the view, preventing the user from directly visualizing the effect of their selection. There appear to be two possible routes to solve this issue:
For both routes, the major roadblock seems to be that the LeafletMap does not update when the user pans around the map or attempts to zoom in, and any attempt to override this behavior would likely result in an infinite update loop in React. This restriction might require the addition of a reload button somewhere on the page to force the component to find its new center tile and re-render the style options.
The text was updated successfully, but these errors were encountered: