You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v1.1.0 Not adding libraries (drawing/places etc) to maps api object #673
are both ways (as described in #681) broken now? For me using the "old" way doesn't work as long as heatmapLibrary={true} is used as described in the docs. It overrides set libraries here
The "new" way with using props for each library isn't working at all, as only the heatmapLayer prop seems to be usable, other libraries are not implemented yet I assume?
@faeron I am sorry you're experiencing this, I reverted the change on 1.1.0 in 1.1.1, so it should work the same as 1.0.9, what is the problem you're experiencing?
no worries :)
when using libraries in bootstrapURLKeys together with the propheatmapLibrary={true}it ignores all set libraries and only uses libraries=visualisation. This behavior seems to have the origin here
as it appends the libraries param again, which overrides the others (as it is set last). The other libraries are not loaded then.
I think it should not be a problem, when using it like in 1.0.9 only (without heatmap prop)
@DonovanDeSmedt would you like me to take over this issue for you? Specifically, to allow usage of bootstrapURLKeys.libraries prop array and the xyzLibrary={true} prop where we load all the libraries set to true from either source? We want to update the README.md to suggest one method or the other #686
and check the network requests. I see the following request https://maps.googleapis.com/maps/api/js?callback=_$_google_map_initialize_$_&key=&libraries=places,drawing&libraries=visualization
from the package.json: "google-map-react": "1.1.4",
I got the problem with the "libraries" too, it's doubled the library, like when I import libraries = ["places"], it generates the url like this: &libraries=placesplaces
Activity
itsmichaeldiego commentedon Nov 13, 2018
@tim-soft Good catch!
This was introduced in #593
I think for the time being, instead of passing
librariesas you were, you can do:itsmichaeldiego commentedon Nov 22, 2018
@tim-soft This was fixed and deployed in
1.1.1, please let me know!faeron commentedon Nov 28, 2018
are both ways (as described in #681) broken now? For me using the "old" way doesn't work as long as
heatmapLibrary={true}is used as described in the docs. It overrides set libraries hereThe "new" way with using props for each library isn't working at all, as only the heatmapLayer prop seems to be usable, other libraries are not implemented yet I assume?
Is there any status on this and/or the PR?
itsmichaeldiego commentedon Nov 28, 2018
@faeron I am sorry you're experiencing this, I reverted the change on
1.1.0in1.1.1, so it should work the same as1.0.9, what is the problem you're experiencing?faeron commentedon Nov 28, 2018
no worries :)
when using libraries in bootstrapURLKeys together with the prop
heatmapLibrary={true}it ignores all set libraries and only useslibraries=visualisation. This behavior seems to have the origin hereas it appends the libraries param again, which overrides the others (as it is set last). The other libraries are not loaded then.
I think it should not be a problem, when using it like in 1.0.9 only (without heatmap prop)
itsmichaeldiego commentedon Nov 28, 2018
@faeron I see the problem, we are working on a total fix with @DonovanDeSmedt
itsmichaeldiego commentedon Feb 13, 2019
@DonovanDeSmedt How are we looking on this man? Would love to see it happening
DonovanDeSmedt commentedon Feb 14, 2019
@itsmichaeldiego Lost it out of sight, I'll take a look at it the coming days
barakplasma commentedon May 16, 2019
@DonovanDeSmedt would you like me to take over this issue for you? Specifically, to allow usage of bootstrapURLKeys.libraries prop array and the xyzLibrary={true} prop where we load all the libraries set to true from either source? We want to update the README.md to suggest one method or the other #686
barakplasma commentedon May 16, 2019
As a recreation of the issue, see https://codesandbox.io/s/google-map-react-simple-map-yzeg2 which initializes a Google-Map-React map with the following props
and check the network requests. I see the following request
https://maps.googleapis.com/maps/api/js?callback=_$_google_map_initialize_$_&key=&libraries=places,drawing&libraries=visualizationfrom the package.json:
"google-map-react": "1.1.4",pablolizardo commentedon Jun 12, 2020
Yes, in fact you have to disable the

heatmapLibraryprop in order to get the libraries array working in thebootstrapURLKeysobject.itsmichaeldiego commentedon Aug 3, 2020
@ZAKdev Could you take a look at this?
itsmichaeldiego commentedon Aug 31, 2020
Merged and released in
2.1.0, let me know if everything works fine for you folks!itsmichaeldiego commentedon Sep 1, 2020
Need to reopen this as I had to revert #921 which had a major bug.
Will wait for @aviyadeveloper to fix it properly without causing bugs!
NgHLong commentedon Sep 2, 2020
I got the problem with the "libraries" too, it's doubled the library, like when I import libraries = ["places"], it generates the url like this: &libraries=placesplaces
itsmichaeldiego commentedon Sep 3, 2020
@NgHLong That is true, we're working on it here #934, stay tuned
NgHLong commentedon Sep 3, 2020
Hey, just import the libraries and region ( libraries = ["places"], region: "VN"), and the URL will be fine.
itsmichaeldiego commentedon Sep 22, 2020
Merged in #946 and Released in version
2.1.4, let me know if you encounter any problems!CC @NgHLong @pablolizardo @barakplasma @DonovanDeSmedt @faeron @tim-soft