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

Position control - noPositionText with empty value show false #2022

Closed
asemoller opened this issue May 29, 2024 · 1 comment · Fixed by #2027
Closed

Position control - noPositionText with empty value show false #2022

asemoller opened this issue May 29, 2024 · 1 comment · Fixed by #2027
Labels

Comments

@asemoller
Copy link
Contributor

Describe the bug
If "noPositionText" has an empty value, the text "false" is displayed in the footer.

To Reproduce
Steps to reproduce the behavior:

  1. Add the position control
  2. Set "noPositionText" to ""
  3. Move the mouse over the map and then move it off the map
  4. See error

Expected behavior
The last mouse position should be rendered.

Screenshots
image

Desktop (please complete the following information):

  • OS: windows
  • Browser: chrome
@steff-o steff-o added the bug label Jun 12, 2024
@steff-o
Copy link
Contributor

steff-o commented Jun 12, 2024

I can confirm that this is a bug introduced in #1648 when OpenLayers changed the interpretation of the placeholder parameter in the MousePosition class to only show last known coordinate when the placeholder is undefined.

Currently there is no way of configuring a workaround as an omitted parameter is in code replaced with a non breaking space.

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

Successfully merging a pull request may close this issue.

2 participants