File protocol supported in xml configuration file

Started by kibitz, June 02, 2014, 10:23:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kibitz

Hi Orux!



I am using the app for about one year now and I can say that is the best app for off-roading.

What I really miss is the support for file protocol in the oruxmaps xml comfiguration file for on-line map sources.

I have some parts of the maps I use saved on my external sd-card in a z/x/y folder manner and i would like to be able to access them directly (kinda like on-line map source).

As a programmer I believe that is not so difficult to implement, and it would make the app more versatile.



Please let me know if you need more details.



Thanks,

Sorin

kibitz

#1
Hello,



Here is an example of what I proposed in my earlier post:

The important part of the code below is: <![CDATA[file]//... instead of <![CDATA[http]//...


<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>
<onlinemapsource uid="255">
<name>My Custom Map</name>
<url><![CDATA[file://{$z}/{$x}/{$y}.png]]></url>
<minzoom>10</minzoom>
<maxzoom>10</maxzoom>
<projection>MERCATORESFERICA</projection>
<cacheable>0</cacheable>
<downloadable>0</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>
...
...
...
<onlinemapsources>


What do you think?

orux

#2
Quote from: "kibitz"Hello,



Here is an example of what I proposed in my earlier post:

The important part of the code below is: <![CDATA[file]//... instead of <![CDATA[http]//...


<?xml version="1.0" encoding="utf-8"?>
<onlinemapsources>
<onlinemapsource uid="255">
<name>My Custom Map</name>
<url><![CDATA[file://{$z}/{$x}/{$y}.png]]></url>
<minzoom>10</minzoom>
<maxzoom>10</maxzoom>
<projection>MERCATORESFERICA</projection>
<cacheable>0</cacheable>
<downloadable>0</downloadable>
<maxtilesday>0</maxtilesday>
<maxthreads>0</maxthreads>
<xop></xop>
<yop></yop>
<zop></zop>
<qop></qop>
<sop></sop>
</onlinemapsource>
...
...
...
<onlinemapsources>


What do you think?


Hi,



I think it is easy;



If you have a small map for testing->oruxuro@gmail.com









orux

kibitz

#3
Thank you!



I will send the minimap for testing.



Sorin