OruxMaps 添加 Google Maps (国内源)

ruxMaps 从5.5 之后由于版权问题,就移除了Google Maps,网上已经有很多修改onlinemapsources.xml的方案了。

但是基本上都是用google.com的源,因为你懂得的原因,基本上不用科学上网,很难访问。

下面我修改了一版,是基于google.cn,在墙内下载也毫无鸭梨:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>

	<onlinemapsource uid="0">
		<name>Google Maps</name>
		<url><![CDATA[http://mt{$s}.google.cn/vt/lyrs=m@121&hl={$l}&x={$x}&y={$y}&z={$z}]]></url>
		<minzoom>0</minzoom>
		<maxzoom>19</maxzoom>
		<projection>MERCATORESFERICA</projection>
		<servers>0,1,2,3</servers>
		<httpparam name=""></httpparam>
		<cacheable>1</cacheable>
		<downloadable>1</downloadable>
		<maxtilesday>0</maxtilesday>
		<maxthreads>0</maxthreads>
		<xop></xop>
		<yop></yop>
		<zop></zop>
		<qop></qop>
		<sop></sop>
	</onlinemapsource>

	<onlinemapsource uid="1">
		<name>Google Earth</name>
		<!--<url><![CDATA[http://khm{$s}.google.cn/kh/v=123&x={$x}&y={$y}&z={$z}]]></url>-->
		<url><![CDATA[http://www.google.cn/maps/vt?lyrs=s@168&x={$x}&y={$y}&z={$z}]]></url>
		<minzoom>0</minzoom>
		<maxzoom>20</maxzoom>
		<projection>MERCATORESFERICA</projection>
		<servers>0,1,2,3</servers>
		<httpparam name=""></httpparam>
		<cacheable>1</cacheable>
		<downloadable>1</downloadable>
		<maxtilesday>0</maxtilesday>
		<maxthreads>0</maxthreads>
		<xop></xop>
		<yop></yop>
		<zop></zop>
		<qop></qop>
		<sop></sop>
	</onlinemapsource>
	<onlinemapsource uid="2">
		<name>Google Terrain</name>
		<url><![CDATA[http://mt{$s}.google.cn/vt/lyrs=t,r&hl={$l}&x={$x}&y={$y}&z={$z}]]></url>
		<minzoom>0</minzoom>
		<maxzoom>15</maxzoom>
		<projection>MERCATORESFERICA</projection>
		<servers>0,1,2,3</servers>
		<httpparam name=""></httpparam>
		<cacheable>1</cacheable>
		<downloadable>1</downloadable>
		<maxtilesday>0</maxtilesday>
		<maxthreads>0</maxthreads>
		<xop></xop>
		<yop></yop>
		<zop></zop>
		<qop></qop>
		<sop></sop>
	</onlinemapsource>

完整的文件,可以参考这个 gist.

将内容保存成onlinemapsources.xml, 并copy到SD卡目录下 oruxmaps/mapfiles/, 重新启动OruxMaps即可。

留言