Author Topic: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)  (Read 103206 times)

Offline Kay Cichini

  • More than Newbie
  • *
  • Posts: 12
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #90 on: April 27, 2014, 16:22:22 »
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'
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12820
  • Thanked: 951 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #91 on: April 27, 2014, 17:46:01 »
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 final download
 

Offline Luis Z

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #92 on: April 27, 2014, 21:02:34 »
Perfect:-)  got it finally!
Many Thanks for your instant help!
 

Offline Arielg

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #93 on: February 01, 2015, 22:33:59 »
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!
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12820
  • Thanked: 951 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #94 on: February 02, 2015, 01:43:22 »
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 final download
 

Offline Arielg

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #95 on: February 02, 2015, 16:37:35 »
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.
 

Offline Menion

  • Locus team
  • Professor of Locus
  • *****
  • Posts: 12820
  • Thanked: 951 times
  • Country: cz
    • View Profile
    • https://www.asamm.com
  • Device: Pixel 5, A12
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« Reply #96 on: February 02, 2015, 20:50:23 »
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 final download