codeformilwaukee / DECARCERATION-PLATFORM

https://wisdp.com
GNU General Public License v3.0
18 stars 17 forks source link

Map should not start in San Francisco #99

Closed paul-rinaldi closed 3 years ago

paul-rinaldi commented 3 years ago

Describe the bug Map on services page starts in San Francisco until a location is clicked

To Reproduce Steps to reproduce the behavior:

  1. Go to Services Page
  2. See bug

Expected behavior When the services page loads, the map should look over WI or MKE County

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Use google-maps-react docs and center map on MKE (lat, lng) 43.0389° N, 87.9065° W

finnegan28 commented 3 years ago

https://github.com/codeformilwaukee/DECARCERATION-PLATFORM/blob/4ad93d48eb1dbecfecc25688e6810964ed1a0be3/web-app/src/components/ServicesPage/index.js#L174

Try this


initialCenter={{
 lat:  43.0389,
 lng: -87.9065
 }}
paul-rinaldi commented 3 years ago

Worked @finnegan28 , much appreciated :D