mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Fix China fix making region required (#496)
This commit is contained in:
parent
3d85c68bdb
commit
b84c663f9a
@ -62,7 +62,8 @@ export default function googleMapLoader(bootstrapURLKeys) {
|
||||
''
|
||||
);
|
||||
|
||||
const url = bootstrapURLKeys.region.toLocaleLowerCase() === 'cn'
|
||||
const url = bootstrapURLKeys.region &&
|
||||
bootstrapURLKeys.region.toLowerCase() === 'cn'
|
||||
? 'http://maps.google.cn'
|
||||
: 'https://maps.googleapis.com';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user