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

Returning wrong pixel xy value on mousemove for leaflet engine #10677

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

shivadas1980
Copy link
Contributor

@shivadas1980 shivadas1980 commented Nov 14, 2024

Description

On mouse move over map using leaflet engine, it returns wrong pixel xy value. It always return x value for x and y.

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Issue

What is the current behavior?

**On mouse move on map using leaflet engine, return x pixel value for both x and y pixel value. **
#

What is the new behavior?

After this fix, on mouse move over map return correct xy pixel value for leaflet engine

Breaking change

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • Yes, and I documented them in migration notes
  • No

Other useful information

@tdipisa tdipisa requested a review from allyoucanmap November 14, 2024 10:36
@tdipisa tdipisa added this to the 2024.02.02 milestone Nov 14, 2024
@tdipisa tdipisa added External Contribution BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch labels Nov 14, 2024
@tdipisa tdipisa merged commit f5ec4f3 into geosolutions-it:master Nov 15, 2024
6 checks passed
allyoucanmap pushed a commit to allyoucanmap/MapStore2 that referenced this pull request Nov 15, 2024
@tdipisa tdipisa removed the BackportNeeded Commits provided for an issue need to be backported to the milestone's stable branch label Nov 15, 2024
tdipisa pushed a commit that referenced this pull request Nov 15, 2024
@ash03e608
Copy link

Hello @tdipisa , @allyoucanmap ,
This MR has been submitted from a team at Halliburton who is currently using Mapstore via the JS API. We are currently evaluating the stability of the Mapstore JS API and hence we are interested to know the history of this bug and if this was a recent regression. If not, is this a bug thats only exposed on the JS API and not via the React components. Since the workflow is fundamental and the error very obvious, i wanted to hear your thoughts on it.

@tdipisa
Copy link
Member

tdipisa commented Nov 15, 2024

@ash03e608 it is not a recent regression. That incorrect setup was introduced many years ago by this PR #1211, it seems.
Probably because Leaflet map engine is less used and supported than OL/Cesium ones, this issue has never been reported before. Thank you very much for using MapStore.

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

Successfully merging this pull request may close these issues.

4 participants