Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix for usage from China#494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

emilpalsson
Copy link
Contributor

Use China specific API URL if setting bootstrapURLKeys.region to 'cn'.

Fixes#493

Copy link

@nicolasdelfinonicolasdelfino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good, I approve

@itsmichaeldiego
Copy link
Member

@emilpalsson Thanks for this, it is looking good, would you mind adding this to the docs? As soon as you do that I will release a new version fixing this.

@@ -62,8 +62,12 @@ export default function googleMapLoader(bootstrapURLKeys) {
''
);

const url = bootstrapURLKeys.region === 'cn'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

what about other regions ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@jooj123 I believe the only region that has a problem with this is China. But we could confirm

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Exactly, China is the only region mentioned on the Google Maps FAQ (see link in the issue), and the only region I've experienced problems with.

itsmichaeldiego reacted with thumbs up emoji
@emilpalsson
Copy link
ContributorAuthor

@itsmichaeldiego Great! Of course, I'll see if I can find a good spot for this in the docs right now.

@emilpalsson
Copy link
ContributorAuthor

@itsmichaeldiego I've added this to the docs, let me know if you want me to structure it differently. I also added a toLocaleLowerCase() for case insensitivity.

Copy link
Member

@itsmichaeldiegoitsmichaeldiego left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Great work dude!

@itsmichaeldiegoitsmichaeldiego merged commit1a60df0 intogoogle-map-react:masterJan 18, 2018
@emilpalssonemilpalsson deleted the Iss493-china-url branchJanuary 19, 2018 07:21
@romanenko
Copy link

Looks like that if region is not set — it leads to uncaught Error now, with 0.28.0 release

image

I'm setting up my GoogleMap component like this:

<GoogleMapbootstrapURLKeys={{key:GOOGLE_MAPS_API_KEY,language:intl.locale,}}//...

@emilpalsson
Copy link
ContributorAuthor

emilpalsson commentedJan 19, 2018
edited
Loading

@romanenko Yes, I'm sorry for this. There is already a new PR to fix this (#496).

nicolasdelfino reacted with heart emoji

@lock
Copy link

lockbot commentedDec 1, 2019

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.

@locklockbot locked asresolvedand limited conversation to collaboratorsDec 1, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@jooj123jooj123jooj123 left review comments

@itsmichaeldiegoitsmichaeldiegoitsmichaeldiego approved these changes

@nicolasdelfinonicolasdelfinonicolasdelfino approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Usage from China requires different API URL
5 participants
@emilpalsson@itsmichaeldiego@romanenko@jooj123@nicolasdelfino

[8]ページ先頭

©2009-2025 Movatter.jp