[MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)

Started by Menion, November 29, 2010, 14:53:04

0 Members and 5 Guests are viewing this topic.

Kay Cichini

Thanks Menion - I edited the original posting.

I see the provider in the list of online maps and it is selectable..
I tried to change zoom level, too - but map still shows error '..not available'
  •  

Menion

I'm testing it and for me it works.  I've rather attached XML file with screenshot.

You may see on screenshot coordinates, that it's somewhere in the north Canada, is it correct?

- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Luis Z

Perfect:-)  got it finally!
Many Thanks for your instant help!
  •  

Arielg

Hi,

I am trying to create a custom map using the following XML:
<?xml version="1.0" encoding="UTF-8"?>
<providers>
<!-- IsraelHikingMap -->
    <provider id="20000" type="0" visible="true" background="-1">
        <name>Israel Hiking Map</name>
        <mode>Hiking trails</mode>
        <countries>Israel</countries>
        <url><![CDATA[http://osm.org.il/IsraelHiking/Tiles/{z}/{x}/{y}.png]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>7</zoomMin>
        <zoomMax>16</zoomMax>
        <tileSize>256</tileSize>
        <attribution></attribution>
        <extraHeader></extraHeader>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
</providers>


For some reason, it's not showing in the maps section..

Any help would be appreciated.

Thanks!
  •  

Menion

Hello Airleg,

isn't there already (maybe in any other XML file you already use for adding online maps) any other map with same ID? Check for already used  id="20000" value.
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •  

Arielg

Thanks Menion.
I checked again my XML and some of the quotes in the XML were weird, replacing them with standard quotes worked!
this is the XML I am now using:
<?xml version="1.0" encoding="UTF-8"?>
<providers>
<provider id="20000" type="0" visible="true" background="-1">
        <name>Israel Hiking Map</name>
        <mode>Hiking trails</mode>
        <countries>Israel</countries>
        <url><![CDATA[http://osm.org.il/IsraelHiking/Tiles/{z}/{x}/{y}.png]]></url>
        <zoomPart>{z}-8</zoomPart>
        <zoomMin>15</zoomMin>
        <zoomMax>24</zoomMax>
        <tileSize>256</tileSize>
        <attribution></attribution>
        <extraHeader></extraHeader>
        <extraHeader><![CDATA[User-Agent#Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1]]></extraHeader>
    </provider>
</providers>

The only problem now is I can't get my head around the combination of zoomPart, zoomMin and zoomMax.

This is a map based on OpenStreetMap and seems to adhere to the same zoom level.. As this is a regional map, the tiles zoom ranges are 7-16, but when I input these vales into the min/max field it does not work.. when I add +8 (15-24) it does, but the zoom is not restricted to these levels.. you can zoom both further out and further in..

thanks.
  •  

Menion

zoom values 15-24 should be valid values. may you describe what exactly is a problem? Locus allows you to zoom beyond these limits?
- Official help (ideas, questions, problems): help.locusmap.eu
- Advanced topics, sharing of knowledges: you're here!
- LM 4 Beta download, LM 4 Release download
  •