Providing custom Google Map URL to the component #2038
asaivishal
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
@JustFly1984 any idea how to provide custom URL? |
Beta Was this translation helpful? Give feedback.
2 replies
-
@asaivishal Hey did you find a way to be accessible in china? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI,
We have a requirement to provide different Google Map URL to the component based on one specific country (CN - China) and the google map url for that is different. With
[email protected]
we were able to provide different url usinggoogleMapURL
prop inwithScriptJs
HOC.Using
@react-google-maps/api
there doesn't seem to have any way to customise URL because it's usingmakeLoadScriptUrl
utility function to create google map URL and it's using static URL valuereturn https://maps.googleapis.com/maps/api/js?${params.join('&')}
.Is there any way to provide custom URL or there should be custom prop or params to provide different value of base google maps url?
Beta Was this translation helpful? Give feedback.
All reactions