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

Canvass assignments: Zoom in map not working as expected #2355

Open
ziggabyte opened this issue Nov 13, 2024 · 4 comments
Open

Canvass assignments: Zoom in map not working as expected #2355

ziggabyte opened this issue Nov 13, 2024 · 4 comments
Labels
🐜 bug Something isn't working

Comments

@ziggabyte
Copy link
Contributor

ziggabyte commented Nov 13, 2024

Please be as thorough as possible, but if you can't answer everything, please just submit what you have! Thank you!

Description

  1. When I go to the "Map" tab in a canvass assignment, the "+", "-" and "home icon" buttons up to the left don't work until i have interacted with the map in some other way first (like click on one of the buttons on the right side of the map, or click on an area in the map).

  2. Sometimes when i go to the "Map" tab, the map renders in the most zoomed in level possible. I cannot see a pattern to when this happens. This is hard to describe how to reproduce - it just to me seems to occur randomly when i arrive at the Map tab.

I use Firefox if that might have any effect

Steps to reproduce 1)

  1. Go to a canvass assignment
  2. Click on the "Map" tab
  3. Click on the "+" icon at the top left corner of the map

Expected Behaviour

It zooms in one step

Actual Behaviour

It does nothing

Screenshots (if you have any)

(i am clicking the + icon and nothing is happening)
bild

Suggestions

Note: this does not happen for me in the map in ../areas, so whatever is going on there is working

@ziggabyte ziggabyte added the 🐜 bug Something isn't working label Nov 13, 2024
@troldmand
Copy link
Collaborator

Hi @ziggabyte, can you help me find the way:

If I go to http://localhost:3000/organize/1/projects/48/canvassassignments/670e17dde969402e5c5a0fe7 for example, I don't see the 'Map' button. If I go to http://localhost:3000/organize/1/projects/48/canvassassignments, I get a 404 Page Not Found.

Can you help me find the 'entry point' to this?

@richardolsson
Copy link
Member

@troldmand: Are you running this locally? If so, you need to have the feature flag FEAT_AREAS=* defined as an environment variable for the Areas (and canvass assignments) feature to be enabled.

The feature is enabled on https://app.dev.zetkin.org/, so you can try to reproduce it there first.

@troldmand
Copy link
Collaborator

@troldmand: Are you running this locally? If so, you need to have the feature flag FEAT_AREAS=* defined as an environment variable for the Areas (and canvass assignments) feature to be enabled.

The feature is enabled on https://app.dev.zetkin.org/, so you can try to reproduce it there first.

Thx, yeah, I was rubbing locally. Nice you are using feature flagging! 😱

@troldmand troldmand assigned troldmand and unassigned troldmand Nov 24, 2024
@troldmand
Copy link
Collaborator

Gave it a shot. Found a quick way to reproduce:

  1. Refresh the page, when on map and zoomIn or zoomOut won't work
  2. Click on an area to open the overlay
  3. zoomIn and zoomOut works again, until a new refresh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐜 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants