DEV Community

Discussion on: Easy way to integrate Google Maps in React

Collapse
 
boris74000 profile image
Boris74000

Amazing, it works !!

here is my very first code codesandbox.io/s/openclassrooms-pr...
What is the difference ?
Can you explain me why bounds = -180 180 -1 1 ?

Thank you so much, I will be able to move forward on my project.

Collapse
 
thomasledoux1 profile image
Thomas Ledoux

I guess this is caused because you didn't add anything to your bounds yet. If you look at my initial example, I add all my offices to the bounds using a for each loop.
Hope that helps!