From 57e56f05f347c752da14b1418581a2e2044637a6 Mon Sep 17 00:00:00 2001 From: ALAN Date: Fri, 22 Mar 2024 16:42:00 +0800 Subject: [PATCH 1/2] feat: add Google Map direct script url --- .gitignore | 1 + src/index.ts | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bb509af..34e870e 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ node_modules .env.test.local .env.production.local .vscode/ +.idea/ npm-debug.log* yarn-debug.log* diff --git a/src/index.ts b/src/index.ts index f984c83..dd89fbd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -11,10 +11,13 @@ const MAPS_ARR_SDK = [ '//api.map.baidu.com', // 腾讯MAP_SDK - '//map.qq.com/api/gljs' + '//map.qq.com/api/gljs', // 高德MAP_SDK 【高德无跨域问题无需处理】 // "//webapi.amap.com/maps", + + // Google Map + '//maps.googleapis.com/maps/api/js' ]; // JSONP @@ -28,7 +31,10 @@ const MAPS_ARR_JSONP = [ // 腾讯MAP 'apikey.map.qq.com', 'confinfo.map.qq.com', - 'overseactrl.map.qq.com' + 'overseactrl.map.qq.com', + + // Google Map + 'maps.googleapis.com' ]; /** From a753a7519d82d43ad4b0bf7b33b16fa0de9118ea Mon Sep 17 00:00:00 2001 From: ALAN Date: Fri, 22 Mar 2024 16:45:27 +0800 Subject: [PATCH 2/2] feat: update comments --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index dd89fbd..978c228 100644 --- a/src/index.ts +++ b/src/index.ts @@ -16,7 +16,7 @@ const MAPS_ARR_SDK = [ // 高德MAP_SDK 【高德无跨域问题无需处理】 // "//webapi.amap.com/maps", - // Google Map + // Google Map width direct script '//maps.googleapis.com/maps/api/js' ]; @@ -33,7 +33,7 @@ const MAPS_ARR_JSONP = [ 'confinfo.map.qq.com', 'overseactrl.map.qq.com', - // Google Map + // Google Map width direct script 'maps.googleapis.com' ];