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

Update zoom correctly when requesting link to this configuration #2488

Merged
merged 1 commit into from Nov 4, 2022

Conversation

podliashanyk
Copy link
Contributor

Changes made:

Function zoomToBounds() updates zoom correctly in accordance with the parameters it receives. This applies to several use cases, and specifically to a scenario when user requests a link to the current configuration.

Before, zoom value was ignored in view, but was present in the url, when user requested a link to current configuration. This commit makes zoomToBound() apply changes to zoom, when parameters are present. Parameters are present if the url with zoom, lon, lat values is present, ie when user requests link to current configuration.

Closes #2412

@podliashanyk podliashanyk self-assigned this Nov 3, 2022
@podliashanyk
Copy link
Contributor Author

This is an exact copy of #2469 aimed to fix the problem with the CLA

Before, zoom value was ignored in view, but was present in the url, when user requested a link to current configuration. This commit makes zoomToBound() apply changes to zoom, when parameters are present. Parameters are present if the url with zoom, lon, lat values is present, ie when user requests link to current configuration.
@sonarcloud
Copy link

sonarcloud bot commented Nov 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

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

Looks perfectly cromulent, and works like a charm when I test it :) 🎉

@lunkwill42 lunkwill42 added this to the 5.5.0 milestone Nov 4, 2022
@codecov
Copy link

codecov bot commented Nov 4, 2022

Codecov Report

Merging #2488 (c1e24f0) into master (b18b820) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #2488      +/-   ##
==========================================
- Coverage   52.99%   52.96%   -0.04%     
==========================================
  Files         554      554              
  Lines       40266    40266              
==========================================
- Hits        21339    21326      -13     
- Misses      18927    18940      +13     
Impacted Files Coverage Δ
python/nav/ipdevpoll/pool.py 84.88% <0.00%> (-5.04%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lunkwill42 lunkwill42 merged commit 34760d9 into master Nov 4, 2022
@lunkwill42 lunkwill42 deleted the fix-geomap-zoom-bug branch November 4, 2022 08:46
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 this pull request may close these issues.

[BUG] Geomap link to this configuration leads to default map
2 participants