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

Set a sensible default zoom level when displaying a neighborhood boundary #2251

Open
1 task
entrotech opened this issue Oct 22, 2024 · 0 comments
Open
1 task
Labels
dev Code Development P-Feature: Map Food seeker map view priority: SHOULD HAVE Release Note: Enhancement Shows on Release Notes under "Enhancements" Role: Front-end Front End Developer size: 3pt The lift to complete this user story 4-8hrs Sprint 07

Comments

@entrotech
Copy link
Member

entrotech commented Oct 22, 2024

Overview

To make the neighborhood council embedded widget look better, set an initial MapBox zoom level such that the neighborhood outlined region fills most of the visible map area.

Description

This wiki page describes how the Food Oasis app can be embedded in another web site, where it will appear in an iframe. One of the intents for the project is to embed Food Oasis in neighborhood council web sites, and we have implemented a feature that accepts an optional query string parameter containing a neighborhood_id like this:
https://la.foodoasis.net/widget?neighborhood_id=78
which will use a shape file from the database to overlay a dashed outline of the neighborhood boundaries on the map. You can just paste the above url into your browser to see an example. Though the map is centered on the geographic center of the neighbrohodo area, it just uses an application-default zoom level, so in many cases, the neighborhood occupies just a small part of the map when it is first displayed.

Action Items

  • Modify the application to automatically zoom such that the neighborhood occupies most of the available map area for any screen size and orientation. You might be able to deduce the lat, lon range from the data already available to the client, or, worst case, we might need to add a column to the database and populate the latititude, longitude ranges in the neighborhood database table.

Resources/Instructions

@entrotech entrotech added Missing: Feature The feature tag is missing for this issue Missing: Size The effort estimate for this issue is missing Missing: Role The role is missing from this issue Missing: Milestone This issue is not part of any milestone labels Oct 22, 2024
@github-project-automation github-project-automation bot moved this to New Issue Approval in P: FOLA: Project Board Oct 22, 2024
@entrotech entrotech added Role: Front-end Front End Developer size: 3pt The lift to complete this user story 4-8hrs P-Feature: Map Food seeker map view and removed Missing: Feature The feature tag is missing for this issue Missing: Size The effort estimate for this issue is missing Missing: Role The role is missing from this issue Missing: Milestone This issue is not part of any milestone labels Oct 22, 2024
@entrotech entrotech added Release Note: Enhancement Shows on Release Notes under "Enhancements" Sprint 07 priority: SHOULD HAVE dev Code Development labels Oct 22, 2024
@whitneywind whitneywind self-assigned this Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Code Development P-Feature: Map Food seeker map view priority: SHOULD HAVE Release Note: Enhancement Shows on Release Notes under "Enhancements" Role: Front-end Front End Developer size: 3pt The lift to complete this user story 4-8hrs Sprint 07
Projects
Status: New Issue Approval
Development

No branches or pull requests

2 participants