code-for-chapel-hill / NC-COVID-Support

Community support site, supporting COVID-19 business opening hours, Food Banks, School Meals, Farms and Social Services.
https://nccovidsupport.org
GNU General Public License v3.0
16 stars 39 forks source link

Move the Lat / Lng coordinates to the theme config files. #191

Closed readingdancer closed 4 years ago

readingdancer commented 4 years ago

Description of the new functionality

The latitude / longitude coordinates used as the default map position are currently hard coded, we would like this to be configurable within the "theme.config.js" files in the Theme folders.

What we need to code

Currently this is hard coded on this line ( https://github.com/code-for-chapel-hill/NC-COVID-Support/blob/master/covid-19-support/src/App.vue#L108 ) as:

centroid: [35.91371, -79.057919]

These coordinates should be moved in each of the Theme.config.js files under a new section called settings. e.g.

theme = {
   settings: {
      initialMapCenter: {
         lat: 35.91371,
         lng: -79.057919
       }
   }
   ...
}
readingdancer commented 4 years ago

I am working on this one :)