codeforboston / mattapan-mapping

Mattapan Mapping application. A collaborative between powerfulpathways.org & codeforboston.org . Ideation phase.
https://mattapan-pp.netlify.app/
MIT License
5 stars 16 forks source link

Refactor Map component #57

Closed laudickson closed 2 years ago

laudickson commented 2 years ago

The Map component is still in its infancy and needs some serious thought and buy-in from active developers as to what the component contract should be.

Some initial thoughts:

The assignee of this particular ticket should get a discussion going before writing any code, gain consensus for component contract, and then pop a PR with agreed-upon implementation

This is not a set-in-stone sort of implementation either, as this app grows and evolves, additional prop support should be carefully added in with consideration

Some suggestions for prop contract:

Interface MapProps:
{
  data: geojson;
  startingCoordinates: number[];
  mapStyle: string;
}