Skip to content

Commit a9212a0

Browse files
committed
feat: 谷歌域名改为.com
1 parent 5073c99 commit a9212a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_posts/2018-02-08-picture-gps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,4 @@
265265
pageControl.init();
266266

267267
</script>
268-
<script src="//ditu.google.cn/maps/api/js?v=3&amp; sensor=false&amp; language=en&amp; callback=initializegooglemap"></script>
268+
<script src="//ditu.google.com/maps/api/js?v=3&amp; sensor=false&amp; language=en&amp; callback=initializegooglemap"></script>

resource/2021/1117_gps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var pageControl = {
3131

3232
const googleLayer = new AMap.TileLayer({
3333
tileUrl:
34-
"http://mt2.google.cn/vt/lyrs=y&hl=zh-CN&gl=cn&x=[x]&y=[y]&z=[z]&s=Galil",
34+
"http://mt2.google.com/vt/lyrs=y&hl=zh-CN&gl=cn&x=[x]&y=[y]&z=[z]&s=Galil",
3535
zIndex: 3,
3636
});
3737

@@ -46,7 +46,7 @@ var pageControl = {
4646
});
4747

4848
const testGoogleImage = new Image();
49-
testGoogleImage.src = `//mt2.google.cn/vt/lyrs=y&hl=zh-CN&gl=cn&x=17294&y=15469&z=15&s=Galil?t=${+Math.random()}`;
49+
testGoogleImage.src = `//mt2.google.com/vt/lyrs=y&hl=zh-CN&gl=cn&x=17294&y=15469&z=15&s=Galil?t=${+Math.random()}`;
5050
testGoogleImage.onload = () => {
5151
map.setLayers([googleLayer]);
5252
};

0 commit comments

Comments
 (0)