Google-map-react: Prevent google maps api loaded twice

Created on 22 Jul 2017  路  3Comments  路  Source: google-map-react/google-map-react

Hi all,

I'm using this amazing library but I have an issue: if I want to load the google maps api externally before the map component is displayed I get this error message: You have included the Google Maps API multiple times on this page. This may cause unexpected errors.

There is an option to disable the 'Loads on Demand' feature?

Thanks!

Most helpful comment

Hi @edcolcode , I was with a similar situation as you are, I was using the places API in other components without the map, getting the error that it was been loading twice. I did what @istarkov wrote here #303 Loading the API on demand inside the component that you would like to load it.

All 3 comments

Hi @edcolcode , I was with a similar situation as you are, I was using the places API in other components without the map, getting the error that it was been loading twice. I did what @istarkov wrote here #303 Loading the API on demand inside the component that you would like to load it.

Thanks a lot @ribeiroguilherme.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StephenMayeux picture StephenMayeux  路  4Comments

codingedgar picture codingedgar  路  3Comments

rku181 picture rku181  路  4Comments

robertwt7 picture robertwt7  路  4Comments

VLNTNA picture VLNTNA  路  4Comments