hackforla / food-oasis

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

MapBox capabilities questions from designers for devs #2275

Open fancyham opened 1 week ago

fancyham commented 1 week ago

Overview

This is a list of questions from the design team to our Mapbox developer(s) that will help us better understand what's possible, what's easy/difficult, in order to inform our designs.

Action Items

Please review and answer these questions if you can, and note difficulty if something is particularly easy or difficult. Thanks!

  1. Can we auto-zoom the map to show the closest 20 pins, no matter the distance from the user’s address? (particularly in extreme cases where there are lots of locations near by, or very few) (re: #2216)
  2. Can we easily count how many results are within a certain radius? (useful for displaying a "20 locations in 5 miles)
  3. Can we easily tell how many pins are currently displayed on the map? (re: #2216)
  4. Can we display numbered pins dynamically, or do we need static images for each number? (re: #1711)
  5. Can we draw circles on the map to show distance from user's address? (i.e. 1 mile, 2 miles, 5 miles, 10 miles)
  6. Can we get MapBox working with Microsoft Clarity? #1908
  7. DYNAMIC Data loading on MAP MOVEMENT  - this is where I wonder, if we move the center of the map to a different location that have more than 20 locations (at same map scale) : will it ZOOM IN to show only 20 locations? 
  8. DYNAMIC Distance (Radius filter) -Can we combine this radius filter with the 20 closest locations ‘filter’?  Or the idea, when user enter location the default is to only show 20 closets, but as soon as you input additional filters in your search, then you are no longer bound to the 20 closest? 

Questions 1-6: @fancyham Questions 7-8: @Shienny1

(Let’s try to put the answers and summary of any discussion here for posterity and future reference)

whitneywind commented 14 hours ago
  1. Autozoom to show 20 closest pins?
  1. Count results within a certain radius?
  1. Tell how many pins are currently displayed?
  1. Display numbered pins dynamically? Or static images for each?
  1. Draw circles on the map to show distance from user's address?
  1. Can we get MapBox working with Microsoft Clarity?
  1. DYNAMIC Data loading on MAP MOVEMENT  - if we move the center of the map to a different location that have more than 20 locations (at same map scale) : will it ZOOM IN to show only 20 locations? 
  1. DYNAMIC Distance (Radius filter) - Can we combine this radius filter with the 20 closest locations ‘filter’?  Or the idea, when user enter location the default is to only show 20 closest, but as soon as you input additional filters in your search, then you are no longer bound to the 20 closest?