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

Task/WG-5: complete leaflet map #284

Merged
merged 30 commits into from
Dec 19, 2024
Merged

Conversation

nathanfranklin
Copy link
Collaborator

@nathanfranklin nathanfranklin commented Nov 19, 2024

Overview:

Besides mapillary/streetview work, this completes the leaflet map by adding:

  • points
    • clustering of marker points with marker-cluster
    • custom style with color and icon
    • unique marker for certain feature-types like point clouds, image video
  • polygons/lines

There are some slight differences with angular version of hazmapper:

  • Style for features with an (e.g. images, videos etc) are basically the same except --global-color-accent--normal is used for color
  • Default style for points (that don't have an asset) is the same except the color is --global-color-accent--normal
  • Cluster marker is now the same size as feature markers (before it was smaller which felt counterintuitive as the cluster marker represents multiple markers)

The remaining things for leaflet map are the following:

  • support mapillary in our map WG-392
  • improve zooming (issues also exist in the angular version) WG-202

PR Status:

  • Ready.

Related Jira tickets:

Summary of Changes:

Testing Steps:

  1. Test on http://localhost:4200/project/cd010f4d-3975-4fde-8bbd-b81ffb87273f (set GeoapiBackendEnvironment.Staging in src/secret_local.ts)
  2. Test on your own maps on Staging or anywhere else
  3. see that rendering for points, point clouds, other things is the same
  4. You could test with taggit-edited map project to see custom icons/colors

UI Photos:

TODO

Notes:

To check or do:

  • fix initial zoom when going to project list and then back to new map
  • use icons and style markers for different features.
  • check zoom on clustered features behavior out of scope improvement so will be post-react: Added better notes to https://tacc-main.atlassian.net/browse/WG-202
  • check custom style in feature.properties.style is being used
  • check if feature.style could also be queried and used (optional)
  • check if default style is correct
  • check if LARGE map renders quickly
  • regression in duplicate features in FeatureFIleTree (fixed in hotfix: show duplicate file paths in feature tree #294)

@sophia-massie
Copy link
Contributor

🦖 LGTM looking more and more like Hazmapper every day!

@sophia-massie sophia-massie self-requested a review November 27, 2024 17:50
@nathanfranklin nathanfranklin marked this pull request as draft November 27, 2024 18:06
@nathanfranklin nathanfranklin marked this pull request as ready for review December 19, 2024 17:41
Copy link
Contributor

@sophia-massie sophia-massie left a comment

Choose a reason for hiding this comment

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

This looks great! There's one thing - some maps load the roads layer and some load the satellite. Is this intentional?

roads
satellite

@nathanfranklin
Copy link
Collaborator Author

This looks great! There's one thing - some maps load the roads layer and some load the satellite. Is this intentional?

roads satellite

yes, those dependent on what a user has configured as base layers for each map:

Screenshot 2024-12-19 at 4 15 44 PM

@sophia-massie sophia-massie self-requested a review December 19, 2024 22:19
Copy link
Contributor

@sophia-massie sophia-massie left a comment

Choose a reason for hiding this comment

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

LGTM!

@nathanfranklin nathanfranklin merged commit a0e4ab3 into main Dec 19, 2024
5 checks passed
@nathanfranklin nathanfranklin deleted the task/WG-5-complete-leaflet-map branch December 19, 2024 23:15
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