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

Map refac #123

Merged
merged 16 commits into from
Apr 30, 2024
Merged

Map refac #123

merged 16 commits into from
Apr 30, 2024

Conversation

lukarenko
Copy link
Collaborator

Description

  • Map type and overlay was moved to leafletHelpers.js and is now reused in all maps
  • OpenSeaMap overlay off by default on all maps
  • Timelapse: All query parameters are with underscores.
  • map_type query parameter now expects string (but still works with numerical 0 and 1 for old URLs), fallback to Satelitte
  • ignore_moorage_overlay changed to moorage_overlay to avoid double negation
  • fixed parsing boolean values from query parameters
  • all component props renamed to camelCase

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

Switch to helper class for following maps:
- logbook
- moorages
- default map (dashboard)
- map_type now using string ID
- keep backward compatibility for 0 and 1 numericals
-
This should be selected by user
- Ignore Moorage Overlay -> Show Moorage Overlay
- map_type is now sent as string
@lukarenko lukarenko requested a review from xbgmsharp April 29, 2024 13:12
@xbgmsharp xbgmsharp merged commit e410766 into live Apr 30, 2024
3 checks passed
@xbgmsharp
Copy link
Owner

thanks Awesome work

@xbgmsharp xbgmsharp deleted the map-refac branch April 30, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants