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

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #30 on: May 14, 2011, 00:12:43 »
i set up my own tile server with osm data and file strkture

Code: [Select]
http://xxx.xxx.xxx.xxx/tiles/1/1/0.png
my providers.xml looks like this:
Code: [Select]
   <?xml version="1.0"?>
    <providers>
       <provider id="1500" type="0" visible="false" required="true" background="-1">
          <name>sebbo</name>
          <mode>background</mode>
          <area>World</area>
          <url><![CDATA[http://xxxxxxxxx/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
       <provider id="1501" type="0" visible="false" required="false" background="1000">
          <name>sebbo</name>
          <mode>contours</mode>
          <area>World</area>
          <url><![CDATA[http://xxxxxxxxxx/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
       <provider id="1502" type="0" visible="true" required="false" background="1001">
          <name>sebbo</name>
          <mode>OpenPiste</mode>
          <area>World</area>
          <url><![CDATA[http://xxxxxxxxxxxxxxxx/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
    </providers>


but when opening locus and browsing the online maps, it doesnt appear!?

any ideas
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10209
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #31 on: May 14, 2011, 07:42:20 »
I see wrong background Id in your definition. There should be id of layer you want to use, so 1500 and 1501. If you have then still problem, write me PM with specific values...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #32 on: May 14, 2011, 10:03:24 »
im not allowed to send pm :(

so here the details:
Code: [Select]
http://217.92.52.58/tiles/
providers.xml looks like this now and still not working
Code: [Select]
   <?xml version="1.0"?>
    <providers>
       <provider id="1500" type="0" visible="false" required="true" background="1500">
          <name>sebbo</name>
          <mode>background</mode>
          <area>World</area>
          <url><![CDATA[http://217.92.52.58/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
       <provider id="1501" type="0" visible="false" required="false" background="1501">
          <name>sebbo</name>
          <mode>contours</mode>
          <area>World</area>
          <url><![CDATA[http://217.92.52.58/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
       <provider id="1502" type="0" visible="true" required="false" background="1502">
          <name>sebbo</name>
          <mode>OpenPiste</mode>
          <area>World</area>
          <url><![CDATA[http://217.92.52.58/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>
    </providers>
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10209
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #33 on: May 14, 2011, 12:52:12 »
i'm just going out so please try this ...

<provider id="1501" type="0" visible="false" required="false" background="1500">

- use 1500 as background ID if you want to layer with id 1500 be background layer for layer with id 1501. Or I just suggest you to use only one layer without background for testing.

So try for example only this
Code: [Select]
      <provider id="1502" type="0" visible="true">
          <name>sebbo</name>
          <mode>OpenPiste</mode>
          <area>World</area>
          <url><![CDATA[http://217.92.52.58/tiles/{c}.png]]></url>
          <cooPart><![CDATA[{z}/{x}/{y}]]></cooPart>
          <zoomPart>{z}-8</zoomPart>
          <zoomMin>8</zoomMin>
          <zoomMax>24</zoomMax>
          <tileSize>256</tileSize>
          <extraHeader>Referer#http://locus.asamm.cz/</extraHeader>
       </provider>

"required" is deprecated and "background" is not required ... this should be working fine. If not, I'll look at it tomorrow ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #34 on: May 15, 2011, 14:54:40 »
looks like working now.
but also looks like is did something wrong on generating my tiles
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #35 on: May 17, 2011, 19:00:07 »
alright. as my tileserver is working now there is another problem YOU need to fix.

the f*cking  download limit! :D

because its my own server, it doesnt need a limitation.
PLEASE remove the limitation somehow. maybe by adding the ip to a whitelist. or by adding private ip ranges to a whitelist
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10209
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #36 on: May 18, 2011, 06:57:25 »
ehh ... you're correct. This is very nice issue indeed ... hell

It's a little problem, how to solve it? hmm ... whitelist is nice but have to be coded into application ... damm
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #37 on: May 18, 2011, 07:59:15 »
hope you can find a solution somehow.
else you could send me an older version of locus without the limitation.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline Hirves

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #38 on: May 20, 2011, 11:09:27 »
Hi

First, thanks for this app.

Is it possible to exclude zoom levels in the middle of range? For example, there is no map in zoom level 20, but 19 and 21 appear.

I have topographic map but only in 3 zoom levels(levels 24-22). Is it possible to mix road map to missing zoom levels(21-12)?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #39 on: May 26, 2011, 19:39:36 »
any news on disabling download limit for private servers?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10209
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #40 on: May 29, 2011, 10:25:55 »
seboo, I'm trying to find any simple solution but I have no idea .. what about you?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline InfX

  • More than Newbie
  • *
  • Posts: 54
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #41 on: May 29, 2011, 22:50:46 »
I would like to add an "map.geo.admin.ch" as a custom online map...

It seems to have 256x256 tiles, fetched from "http://tile{n}.geo.admin.ch/geoadmin/ch.swisstopo.pixelkarte-farbe/{z}/000/000/{x}/000/000/{y}.jpeg", referrer is "http://map.geo.admin.ch/ ", zoom range is from 14 to 22 (well, to 26, but those are simply a resize of level 22), n seems to be randomized (i've seen 5,6,7,8 and 9), coordinates - hell knows, i don't know much about how those are usually represented, but it seems like a simple x & y for the tile (NOT a geographic coordinate).

Any hints ?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline marlar

  • More than Newbie
  • *
  • Posts: 82
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #42 on: May 29, 2011, 23:00:48 »
Quote from: "menion"
seboo, I'm trying to find any simple solution but I have no idea .. what about you?

You could disable download limitations based on a server response. If a person hosts his own tile server, he should be able to send a customized http response header. Something like: Disable-Tile-Limitations: True.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10209
  • Thanked: 83 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #43 on: May 31, 2011, 06:55:17 »
hmm nice idea! seboo is this possible for you?
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline sebbo

  • More than Newbie
  • *
  • Posts: 50
    • View Profile
    • http://sebbosweb.com
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 20.4.2011)
« Reply #44 on: May 31, 2011, 12:39:38 »
should be possible somehow. never changed a header on a apache server before but ill try to find a howto
« Last Edit: January 01, 1970, 01:00:00 by Guest »