hackforla / food-oasis

Repository for the current redevelopment of the Food Oasis Los Angeles website
https://foodoasis.la
GNU General Public License v2.0
71 stars 50 forks source link

Map: show geographic regions: Design #1129

Closed fancyham closed 2 years ago

fancyham commented 2 years ago

Overview

We need to have a food oasis interface that allows for searching by district boundary types so that we can get placement on official local sites such as Neighborhood councils, LA County Supervisors, LA City Council people, etc.

Details

When user enters a geographic term like neighborhood or zip code (or one is specified in the URL), center the map on that location and display a highlighted boundary on the map so that the user can orient themselves to a familiar area, and zoom out to the level where the entire region is in-view on the map.

Action Items

Resources/Instructions

Example ![Screen Shot 2021-11-29 at 5 59 45 PM](https://user-images.githubusercontent.com/3376957/143983461-f9bab0bb-57bf-4559-a980-9d15ba9c7a2f.jpg)
sei1122 commented 2 years ago

I had a meeting with Bonnie and Ben and learned the area boundary task. I did some research to learn what type of area boundary style other sites are using and took screenshots on Figma.

Boundary style https://www.figma.com/file/D3oq9QOXl0rFkwrEUJbABs/FOLA-Design-System?node-id=4650%3A8805

Things to consider

Screen Shot 2022-02-24 at 9 59 22 AM

w to search the council district? Neighbourhood, zip code, one is specified in the URL or NC name

sei1122 commented 2 years ago

I placed design ideas on Figma. https://www.figma.com/file/D3oq9QOXl0rFkwrEUJbABs/FOLA-Design-System?node-id=4652%3A8814

Question

fancyham commented 2 years ago

Adding screenshot here for easy reference: #1129 Map showing geographic regions - Screen Shot 2022-02-23 at 4 34 37 PM

Looks good.

I’ll suggest that the initial zoom setting for the map when loading be such that the entire neighborhood area fits in view.

@ExperimentsInHonesty, @Benbaillou ,

Re: Search functionality

It seems that right now, it would be difficult to add org names or neighborhoods to the search field:

If the search field doesn’t work, we could list neighborhoods with their respective URLS on a hidden page.

Also, how do we envision neighborhood councils specifing their boundaries and work with us to add them to our site?

Do they contact us directly and open a ticket? Is there something we can import that has all the neighborhoods already?

sei1122 commented 2 years ago

@fancyham Thank you for the feedback. I read the issues you mentioned. I will attach screenshots from the next post.

sei1122 commented 2 years ago

As our MVP, We are going to make a page that includes a list of neighborhoods with their respective URLs.

Overview

I checked Mapbox boundaries. Solid line, Dash line, Fill and opacity can be used. https://www.mapbox.com/boundaries. https://docs.mapbox.com/data/boundaries/guides/ https://docs.mapbox.com/mapbox-gl-js/style-spec/layers/#fill

I made some boundary styles. We can discuss more at the meeting. https://www.figma.com/file/D3oq9QOXl0rFkwrEUJbABs/FOLA-Design-System?node-id=2935%3A8

Screen Shot 2022-03-01 at 4 21 28 PM
fancyham commented 2 years ago

Please test that and make confirm that you’re cool with the implementation, and if you’re good with the changes, close this issue or post revisions to be implemented!

fancyham commented 2 years ago

Wiki page with the neighborhood listings is here:

https://github.com/hackforla/food-oasis/wiki/Embedding-Food-Oasis-in-Your-Web-Site

QA folks please review!

sei1122 commented 2 years ago

Looks good :) I read through and I understand how to embed a boundary map.

fancyham commented 2 years ago

Horray! Thanks everyone!