Customize Onlinemapsources.xml

Started by vincecarter729, February 11, 2019, 11:27:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vincecarter729

<t>Hi,<br/>
<br/>
Does someone know how to customize the onliemapsources.xml? Do you have an exemple with several layers?<br/>
I would like to create a mutli-layer map with wms or wmts.<br/>
<br/>
Second question: <br/>
When we create new wms maps directly on the app, where can we find the modified xml? Is there a hidden file?<br/>
<br/>
Regards,<br/>
<br/>
Vincent</t>

afgb1977


afgb1977

#2
https://nnngrach.github.io/AnyGIS_maps/Web/Html/Orux_en">https://nnngrach.github.io/AnyGIS_maps/Web/Html/Orux_en


orux

Hello!

Maps with 512px tile size must use:
<projection>MERCATORESFERICAx512</projection>
like : OSM OpenRailWay - Infrastructure (OVERLAYINFOSTRUCT)

orux



afgb1977

Quote from: orux on March 29, 2020, 10:40:45 AM
Quote from: afgb1977 on August 08, 2019, 09:07:46 PM
<r><URL url="https://nnngrach.github.io/AnyGIS_maps/Web/Html/Orux_en">https://nnngrach.github.io/AnyGIS_maps/Web/Html/Orux_en</URL></r>
Interesting map sources!

orux

Este es un pequeño archivo que he recopilado de diferentes fuentes: AnyGIS, OSM y web de cada proveedor. Espero sea útil para quien quiera usarlo. Todos los enlaces funcionan.

Visinskiradnik

Hello to all...

I was changing onlinemapsources... and after few different changing I can not back to default onlinemapsource.
Just to say... I know the procedure. I changed the the .xml files from oruxmaps/mapsfiles folder. I did it several time to get back to default onlinemapsource. I also did few reinstallation of Oruxmaps apk. I clear mapfiles folder from old cashed files and clear the previous onlinemapsource but after new clean installation I have all online maps from earlier versions.
Is there any solution for this problem ?

japetus

Is it possible to change the date of the layer that an online map is accessed?
As for example in the case of google earth where, when using google earth, you can change the date that the sat photos were taken?
Can we add several instances of the same map in onlinmapsources.xml pointing to different dates?

JEAN PAUL

Hello,

Do you know if it's possible to customize the onlinemapsource.xml, to obtain hiking-maps from Greece on line ? The same maps as here :  https://www.topoguide.gr/index-en.php
I am not geek enough to do this...
With Mobac, i have found in the cloud a file « Grece.bsh », 8)  it's ok for outline maps http://randochartreuse.free.fr/mobac2.x/mapsources/Grece/Grece.bsh
I'd like the same for Online maps.
Thank you very much to the community! :)

Jean Paul.

afgb1977

#9
The following URL is derived from the Mobac file.


<onlinemapsource uid="101">
<name>🔵 TopoGuide (GR)</name>
<url><![CDATA[http://5.135.161.95/wms/wmsolv3xyz2.php?t=16&z={$z}&x={$x}&y={$y}]]></url>
<website><![CDATA[<font color="#FFFFFF">©TopoGuide</font>]]></website>
<minzoom>1</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>


The following comes directly from the topoguide.gr website but I can't get it to work.
https://m1.anadigit.fr/tms/1.0.0/ntn_combo_en/10/570/636.png
<onlinemapsource uid="102">
<name>🔵 TopoGuide (GR)</name>
<url><![CDATA[https://m1.anadigit.fr/tms/1.0.0/ntn_combo_en/{$z}/{$x}/{$y}.png]]></url>
<website><![CDATA[<font color="#FFFFFF">©TopoGuide</font>]]></website>
<minzoom>1</minzoom>
<maxzoom>20</maxzoom>
<projection>MERCATORESFERICA</projection>
<servers></servers>
<httpparam name="User-Agent">{om}</httpparam>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>

JEAN PAUL

Thanks a lot "afgb1977" ,  it's exactly what i needed , it works perfectly with the first URL, derived from the Mobac file !  :)

Phil74

Bonjour,
Je ne réussis pas à m'en sortir : je voudrais pouvoir embarquer ces excellentes cartes Autrichiennes dans onlinemapsources : https://maps.bev.gv.at/#/center/13.35,47.77/zoom/7.5/basis/karte/compare/epo_1
Mais je n'y parviens pas.
Quelqu'un saurait 'il ecrire le script,ou alors est-ce tout simplement impossible ?
Merci d'avance pour votre expertise.
Phil

togirix

#12
Hello @all from France.
J'utilise depuis longtemps OruxMaps (la version payante) sur un Android, et vraiment trop bien. Ma question est la suivante : y at-il un moyen de faire fonctionner le fichier "onlinemapsources.xml" sur un iphone (iOs) avec bien sûr la version adaptée donc OruxMaps for iOS ? Les répertoires ne sont pas les mêmes et à priori si on le met dans le dossier appelé maps sur iOS, cela ne fonctionne pas ? Si quelqu'un a la solution je suis intéressé. Merci.
I've been using OruxMaps (the paid version) on an Android for a long time, and it's really good. My question is this : is there a way to make the "onlinemapsources.xml" file work on an iphone (iOS) with of course the adapted version so OruxMaps for iOS ? The directories are not the same and a priori if you put it in the folder called maps on iOS, it does not work ? If anyone has a solution I'm interested. THANKS.

Jean luc.

LaurentG

Hello @Phil74,

I don't know if you are still interested in the Austrian map you were asking for 6 months ago (I just saw your post today), but in case, you can find hereafter the required code. I added also another server that serves the same data, but with 512x512 tiles.

<onlinemapsource uid="110001"><name>Bev.gv.at (AT)</name>
<url><![CDATA[https://maps.bev.gv.at/tiles/karte/{$z}/{$x}/{$y}.png]]></url>
<minzoom>6</minzoom>
<maxzoom>16</maxzoom>
<projection>MERCATORESFERICA</projection>
<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="110002"><name>Bergfex 50K (AT)</name>
<url><![CDATA[https://tiles.bergfex.at/data/oek50-512/{$z}/{$x}/{$y}.jpeg]]></url>
<minzoom>6</minzoom>
<maxzoom>15</maxzoom>
<projection>MERCATORESFERICAx512</projection>
<cacheable>1</cacheable>
<downloadable>1</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>   

LaurentG

BTW, if you want generate the same as offline maps, using MOBAC, herafter the two corresponding .bsh
source files

name = "Austrian map";
tileType = "png";
minZoom = 6;
maxZoom = 16;

String getTileUrl( int Zoom, int X, int Y ) {
   return "https://maps.bev.gv.at/tiles/karte/" + Zoom + "/" + X + "/" + Y + ".png";
}

name = "Autriche 50k (Bergfex)";

tileType = "jpg";
minZoom = 6;
maxZoom = 15;
String getTileUrl( int Zoom, int X, int Y ) {
  
   return "https://tiles.bergfex.at/data/oek50-512/" + Zoom + "/" + X + "/" + Y + ".jpeg";
}