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

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9856
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
[MANUAL] - CUSTOM ONLINE MAPS (updated 25.7.2011)
« on: November 29, 2010, 14:53:04 »
Current manual for Custom online maps support in Locus is moved on WIKI page

http://docs.locusmap.eu/doku.php/manual ... nline_maps
« Last Edit: May 01, 2012, 15:12:42 by menion »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline miGi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #1 on: February 23, 2011, 20:17:02 »
Hi menion! Thanks for this awesome app and keep up the good work.

But I have a problem with the custom maps. I try to get this http://www.retkikartta.fi/retkikartta.php map to work, but it don’t want to work correctly. It’s map-pieces are in png like this http://ntile1.navici.com/t/retkikartta/ ... x19741.png where 2393x1.411246x9277x19741 is:

2393 = is some kind of constant
1.411246 = very odd zoom level (min)? next steps are 2.116577,  4.234905 and so on…
9277 = X-coordinate
19741 = Y-coordinate

It seems to be that Locus doesn’t understand the zoom-levels. Is the constant reason for that? Can I get somehow this map work whit the Locus? There is also another server for the same map: http://kansalaisen.karttapaikka.fi/ but I can’t get that one either to work.

Thanks,
miGi
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9856
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - adding online map providers
« Reply #2 on: February 23, 2011, 20:50:17 »
Hi miGi,
  as I look on your maps, problem is not only decimal number of zoom level. Main problem is this ...

"0 - type of map provider, 0 means classic Mapnik server (OSM, ...). No others currently possible"

  this server have not so much complicated tile system, as you wrote but tile numbers are not numbers defined in same way as in mapnik server that use for example OSM. I'll look later on your map anyway, adding this map is not currently possible as I see...
« 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 miGi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #3 on: February 23, 2011, 21:25:47 »
Ok! Thanks for the quick reply. I will then wait for the update.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline userloser

  • More than Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #4 on: April 15, 2011, 16:30:32 »
Ok, so can the stupid among us get a little bit more information?

E.g. where do the map provider files go? Locus/mapsOnline/... seems to contain only sqldb files on my phone. Do I dump my map definition xml there as well? What should be the name of the file? Can we see some working examples of other providers, just so we get a hand on how to write those? Maybe a kind soul can extract a config or two from an older distribution than 1.5.1 and dump it on a pastebin somewhere so that we can learn?

What a pity that such a great application has to suffer, and that we - the happy customers - should be left to suffer with junk like the default android map application.  :x
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9856
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - adding online map providers
« Reply #5 on: April 15, 2011, 16:33:15 »
ah sorry. you're correct. In my description are missing such a main information! I'll fix this ...
« 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 userloser

  • More than Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #6 on: April 15, 2011, 16:41:43 »
Please! Thanks.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline femto

  • More than Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #7 on: April 15, 2011, 17:04:52 »
Quote from: "menion"
ah sorry. you're correct. In my description are missing such a main information! I'll fix this ...

Sounds good!

And we should spread also the informations we find regarding the map providers!

For GClive, a Geocaching application, there is a wiki page which lists some of the common URLs used by the map providers.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline femto

  • More than Newbie
  • *
  • Posts: 35
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #8 on: April 15, 2011, 17:07:36 »
Ah, yes, there should be also a GUI for adding a new map server.

Editing a text file is ok, but very userfriendly.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9856
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - adding online map providers
« Reply #9 on: April 15, 2011, 19:02:45 »
OK I updated text in first post. Also working example with three layer osm maps is there. About GUI for this. I was thinking about it but result was that this is not necessary. Only at least little bit experienced user can add some new map. And for him, by me, doesn't matter if he edit this in app or in some external file
« 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 userloser

  • More than Newbie
  • *
  • Posts: 20
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #10 on: April 15, 2011, 22:00:02 »
Thanks! I'll dab into it tomorrow. Damned providers. I agree, at the moment a UI isn't a big deal, uploading a file with ADB is a nobrainer. femto, thanks for the map URL tips.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline jusc

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 1867
  • Thanked: 10 times
    • View Profile
  • Device: Samsung Galaxy S2 and Note 2
Re: [MANUAL] - adding online map providers
« Reply #11 on: April 16, 2011, 16:28:27 »
I get the message wrong provider id. What is to do? Is there already a list for existing IDs?

J.
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Regards J.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9856
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: [MANUAL] - adding online map providers
« Reply #12 on: April 16, 2011, 17:05:31 »
hi, it only notify about some problem in provider definition. If these is something wrong, send me PM and I'll answer you what is wrong. Anyway all is clear enough? If you guys see problems in any step, say me and I'll explain it more carefully in first post ..
« 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 tipichris

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: [MANUAL] - adding online map providers
« Reply #13 on: April 17, 2011, 22:13:19 »
So as I understand the placeholders {z}, {x} and {y} are available for constructing the URL in the XML file. But is it possible to construct 'quadkeys' used by Bing and such, as described here: http://msdn.microsoft.com/en-us/library/bb259689.aspx
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline golgot

  • More than Newbie
  • *
  • Posts: 34
    • View Profile
Re: [MANUAL] - CUSTOM ONLINE MAPS (updated 18.4.2011)
« Reply #14 on: April 18, 2011, 16:26:45 »
Stupid question 1 : does this trick allow to put back maps of version 1.5.1 ?
Stupid question 2 : Do we need to modify the xml file after each new release?
« Last Edit: January 01, 1970, 01:00:00 by Guest »