0

basically I have this so far:

 <GoogleMapReact
   {...otherStuff}
   defaultZoom={3.5}
   defaultCenter={{
      lat: 59,
      lng: 26,
   }}
  />

this is great and works for some countries. but when I put in different lat/lng then the zoom is completely wrong for other countries.

I was wondering if there was anything clever I could do that would adjust the zoom so that basically most of that country is on screen. I'm not too fussy, I don't mind seeing parts of others but it would be good if the main country was focussed in the center. is there anything simple to solve this?

Red Baron
  • 7,181
  • 10
  • 39
  • 86

0 Answers0