Skip to content

Instantly share code, notes, and snippets.

@emilydohrem1111
Last active July 23, 2024 17:42
Show Gist options
  • Save emilydohrem1111/2ab0c8db24fcb9298e66f6a7cd04d619 to your computer and use it in GitHub Desktop.
Save emilydohrem1111/2ab0c8db24fcb9298e66f6a7cd04d619 to your computer and use it in GitHub Desktop.
Google Maps for OruxMaps, copy to PATH_TO_SDCARD/oruxmaps/mapfiles/
<onlinemapsource uid="0">
<name>Google Maps</name>
<url><![CDATA[https://www.google.com/maps/vt/lyrs=m&x={$x}&y={$y}&z={$z}&scale=2]]></url>
<minzoom>0</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICAx512</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[https://www.google.com/maps/vt/lyrs=s&x={$x}&y={$y}&z={$z}&scale=2]]></url>
<minzoom>0</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORESFERICAx512</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[https://www.google.com/maps/vt/lyrs=t,r&x={$x}&y={$y}&z={$z}&scale=2]]></url>
<minzoom>0</minzoom>
<maxzoom>17</maxzoom>
<projection>MERCATORESFERICAx512</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="3">
<name>Google Hybrid</name>
<url><![CDATA[https://www.google.com/maps/vt/lyrs=y&x={$x}&y={$y}&z={$z}&scale=2]]></url>
<minzoom>0</minzoom>
<maxzoom>19</maxzoom>
<projection>MERCATORESFERICAx512</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>
@oruxman
Copy link

oruxman commented Aug 22, 2018

You can use x2 scaled maps (best option in Hi-Res devices) if you add &scale=2 at the end of the url, and replace the projection tag with:
MERCATORESFERICAx512

@grognot
Copy link

grognot commented Sep 2, 2018

Hi, from France,
You can also do this with an Android file manager :

  • (tested with OruxMaps free version installed with the free APK provided by the developer, not through Google Play)
  • go into the folder oruxmaps\mapfiles
  • rename onlinemapsource.xml in onlinemapsource.xml.OLD (for instance)
  • rename onlinemapsource.xml.backup (liste complète) in onlinemapsource.xml .

@KartikeyaRai
Copy link

one of the easiest solution available on net

@liangyln
Copy link

it still works for oruxmaps v9.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment