Locus Map - forum

Content & Tools => Maps => Topic started by: brotbuexe on May 01, 2012, 13:38:41

Title: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 01, 2012, 13:38:41
http://www.hikebikemap.de (http://www.hikebikemap.de) have a Hill shade Overlay.
Terms of Use: https://wiki.openstreetmap.org/wiki/Tile_usage_policy (https://wiki.openstreetmap.org/wiki/Tile_usage_policy)

if it does not exist, create a /sdcard/locus/mapsOnline/custom/provider.xml and insert this text:
If it already exist edit it and just insert the <provider*> ... </provider> stuff inside the <providers> ... </providers> xml tags.

<?xml version="1.0"?>
<providers>
<provider id="10223" type="0" visible="true" required="false" background="-1">
<name>OSM - layers</name>
<mode>Hikebikemap Hillshade overlay</mode>
<area></area>
<url><![CDATA[http://{s}.www.toolserver.org/~cmarqu/hill/{z}/{x}/{y}.png]]></url>
<serverPart>a;b;c;d;e;f</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>24</zoomMax>
<tileSize>256</tileSize>
<attribution>Hillshade overlay tiles come from www.hikebikemap.de, Terms of Use: https://wiki.openstreetmap.org/wiki/Tile_usage_policy</attribution>
</provider>
</providers>

Now you have new maps you can use as overlays in 2.3.X (Main menu / Functions / Map overlays), you can add this function to the right toolbar for quicker use...

If you download them, you should never redownload them, because they will not change.

Edit: better name and added load balacing for the toolserver.
Edit2: fixed the missing zoomPart.
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: jurajs on May 01, 2012, 22:08:39
are somewhere out there the hill shades also for rest of the world ? :-(
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 02, 2012, 05:55:05
What do you miss? I don't know what areas this hill shade don't have (data is not available for some areas because of the SRTM source).

Example USA.
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: jurajs on May 02, 2012, 21:07:56
yeah.. my fault... its working, but you need to fix your code first ;-)
i missed this line :

     <zoomPart>{z}-8</zoomPart>
here are the results:
viewtopic.php?f=40&t=1871&p=12074#p12074 (http://forum.asamm.cz/viewtopic.php?f=40&t=1871&p=12074#p12074)

I think we are in a halfway to perfection ;-)
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 02, 2012, 21:54:43
Of course. Sorry. This line somehow was gone when I added the load balancing.
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: ppiter on May 07, 2012, 17:21:50
Wanderreit (hill shade and Contour lines) is working, but hikebikemap isn't shown in online maps. I tried it with a new Provider.xml and put only your code in this file. But it isn't shown. If I do the same with wanderreit it works fine. Any hints for me?
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 07, 2012, 18:12:20
Just tried the config from the first post, works fine for me.

You can select the Map as Source? Could you try it in some place like the europe alps?
Does it show something like "unknown error" or "does not exist" instead of the tiles?
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: ppiter on May 07, 2012, 20:32:33
I cant select it in Map as Source. As I said I have no problems with the other samples. They work fine. Only this one makes me trouble. Do I have to delete a cache or something else? Same problem with the OMS: viewtopic.php?f=43&t=1907. Only the Wanderreit: viewtopic.php?f=43&t=1881 is working for me.
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 07, 2012, 20:41:18
Hm, don't know whats the problem. And you tried to have only this Source in the providers.xml?
Hm, can you try and change the Provider ID from 10223 to something other like 14001.
Every ID should only be used once in the providers.xml.

What I saw was, that the last version of the Map Tweak Addon uses some IDs I used in my posts. If they are still in the providers.xml and you put this just at the end, this could explain the behaviour.
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: ppiter on May 07, 2012, 21:05:06
Next attempt:
I renamed locus directory on sd card.
I created new directory on sd card /Locus/mapsOnline/custom and put the providers.xml file in the custom directory.
I have only this in my providers.xml
   <?xml version="1.0"?>
    <providers>
       <provider id="11234" type="0" visible="true" required="false" background="-1">
          <name>OSM - layers</name>
          <mode>OMS hill shade layer</mode>
          <area></area>
          <url><![CDATA[http://129.206.74.245:8004/tms_hs.ashx?x={x}&y={y}&z={z}]]></url>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>26</zoomMax>
          <tileSize>256</tileSize>
          <attribution>overlay tiles come from http://openmapsurfer.uni-hd.de, Terms of Use: http://openmapsurfer.uni-hd.de/contact.html</attribution>
       </provider>  
       <provider id="11235" type="0" visible="true" required="false" background="-1">
          <name>OSM - layers</name>
          <mode>OMS contour layer</mode>
          <area></area>
          <url><![CDATA[http://129.206.74.245:8006/tms_il.ashx?x={x}&y={y}&z={z}]]></url>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>26</zoomMax>
          <tileSize>256</tileSize>
          <attribution>overlay tiles come from http://openmapsurfer.uni-hd.de, Terms of Use: http://openmapsurfer.uni-hd.de/contact.html</attribution>
       </provider>  
    </providers>
I installed Locus free
I looked in map manager/online but again no additional layers to select.
I am helpless now!
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: brotbuexe on May 07, 2012, 21:10:58
can someone else try that?
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: ppiter on May 07, 2012, 22:31:34
Ok, I finally found the mistake. In the first line of the code in the example is
<?xml version="1.0"?>this does not work for me. If I change the first line to
<?xml version="1.0" encoding="UTF-8"?> :D
I get all overlays. I'm no programmer, so I don't know what the difference is. But in my original providers.xml produced by map tweak the first line is with UTF-8

Hope this can help others
Title: Re: [MAP Overlay] Hikebikemap Hill shade
Post by: Menion on May 07, 2012, 22:34:35
this overlay added to next Locus version. Tile usage policy allow to this (just for online view with ability to cache data)
Title: AW: [MAP Overlay] Hikebikemap Hill shade
Post by: druki on May 07, 2012, 22:41:40
Thank you, I like the shading on maps. Together with contour lines it's great!