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

Fix #10835 fix load map error #10842

Closed
wants to merge 1 commit into from
Closed

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented Feb 21, 2025

Description

with this implementation the map does not go in loop

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?

Fix #10835

What is the new behavior?

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

@MV88 MV88 added this to the 2025.01.00 milestone Feb 21, 2025
@MV88 MV88 requested a review from tdipisa February 21, 2025 15:37
@MV88 MV88 linked an issue Feb 21, 2025 that may be closed by this pull request
1 task
@tdipisa tdipisa requested review from allyoucanmap and removed request for tdipisa February 21, 2025 15:59
@@ -302,8 +302,7 @@ class OpenlayersMap extends React.Component {
this.map.updateSize();
}, 0);
}
const centerIsUpdated = this.isNearlyEqual(newProps.center.y, this.props.center.y) &&
this.isNearlyEqual(newProps.center.x, this.props.center.x);
const centerIsUpdated = !isEqual(newProps.center, this.props.center);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did additional test locally, with this fix seems to work but as soon as I move the map there is a tile reload

tile-reload.mp4

tested also with:

const centerIsUpdated = newProps.center !== this.props.center;

but it seems the same

I think for the moment is better to revert the commit

@tdipisa
Copy link
Member

tdipisa commented Feb 21, 2025

@MV88 I'm going to close this and merge a the revert PR to unblock DEV state. Please provide a new PR with a proper fix asap.

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