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

Maps in carousels appear at high zoom levels compared to maps not in carousels #508

Open
dan-bowerman opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
Bug Something that probably needs fixing Needs: estimate Give this issue an estimate before it's assigned! PR: Frontend PR that primarily involves frontend changes. UI experts and CSS Wizards are asked to review. PR: Geo PR that involves changes to Geo technologies. Map wizards are asked to review. Priority: High This task is high priority and should be tackled soon Storylines Design Work surrounding the appearance and layout of the Storylines product Storylines Viewer Work surrounding the Storylines Viewer that loads individual StoryRAMP products

Comments

@dan-bowerman
Copy link
Member

Description

If you have a map in its own map panel, it has a certain size. In a carousel, the map interface is quite a bit smaller. Because of this, RAMP configs that were made outside of a carousel look very different when contained in a carousel or gallery. The smaller UI adapts to a different zoom level in order to keep the Canada extent fully in view.

This is not a "bug" per se, but an implementation that is confusing the clients. This issue is about investigating and either concluding that this is a limitation, or finding a solution that will ensure map consistency.

Screenshots

Map without a carousel:
image
Map with a carousel, similar config (same default extents etc):
image

Steps to reproduce

  1. Go to https://environmental-maps.qa.ec.gc.ca/RAMP-Storylines/index-ca-fr.html#/fr/caf0b448-3f23-4316-9ac1-10bd29d2d687
  2. Scroll to the first map, look at it.
  3. Scroll down to the next map, and the ones following it... they are paired with charts in a carousel.
  4. Notice the difference in zoom levels, though the configs are similar.

Expected behavior

For maps in carousels to look the same as maps that aren't in carousels.

Actual behavior

Maps in carousels are smaller and more zoomed out than their gallery-less counterparts.

Possible solution

Is there an optimal size for maps in gallery/carousels? Are there tweaks that can be made to keep the style and function of the gallery, while making sure maps are operating at the same zoom level/extent?

@dan-bowerman dan-bowerman added Storylines Design Work surrounding the appearance and layout of the Storylines product Storylines Viewer Work surrounding the Storylines Viewer that loads individual StoryRAMP products Needs: estimate Give this issue an estimate before it's assigned! Bug Something that probably needs fixing Priority: High This task is high priority and should be tackled soon PR: Frontend PR that primarily involves frontend changes. UI experts and CSS Wizards are asked to review. PR: Geo PR that involves changes to Geo technologies. Map wizards are asked to review. labels Nov 26, 2024
@RyanCoulsonCA RyanCoulsonCA self-assigned this Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something that probably needs fixing Needs: estimate Give this issue an estimate before it's assigned! PR: Frontend PR that primarily involves frontend changes. UI experts and CSS Wizards are asked to review. PR: Geo PR that involves changes to Geo technologies. Map wizards are asked to review. Priority: High This task is high priority and should be tackled soon Storylines Design Work surrounding the appearance and layout of the Storylines product Storylines Viewer Work surrounding the Storylines Viewer that loads individual StoryRAMP products
Projects
None yet
Development

No branches or pull requests

2 participants