Set a sensible default zoom level when displaying a neighborhood boundary #2251
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
Milestone
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
Resources/Instructions
The text was updated successfully, but these errors were encountered: