Skip to main content
Topic: alternative maps (Read 927 times) previous topic - next topic

alternative maps

I wonder how to use "Use Ordnance Survey Maps"? Thanks


Re: alternative maps

Reply #2
thanks

Re: alternative maps

Reply #3
I'd like to use the more detailed 1:50000 annd 1:25000 Ordnance Survey Maps. I have a personal key, but can't get the URL recognised.
I suspect this may be because Bing uses a quadkey rather than {z}/{y}/{x). 
I presume Geooh uses this to display OS maps, so what should it look like?

The URL format that works in similar apps is https://t{s}.ssl.ak.tiles.virtualearth.net/tiles/r{q}.png?g=3440&productSet=mmOS&key=PERSONALKEY

Re: alternative maps

Reply #4
Geooh is using their {z}/{y}/{x) server with a key assigned to Geooh and Android's tile server mapping software. Google doesn't have anything like the format you listed to retrieve tiles. What is {s} and {q}? How do they relate to zyx? The format you provided doesn't have a zoom level?

Re: alternative maps

Reply #5
I forget where the syntax came from originally, but one source is from GME (Geocaching Map Enhacements)
https://geo.inge.org.uk/gme_maps.htm#os
which specifies
{"alt":"Ordnance Survey","tileUrl":"https://t{s}.ssl.ak.tiles.virtualearth.net/tiles/r{q}.png?g=3440&productSet=mmOS&key=PRIVATE_KEY", "subdomains": "0123", "minZoom":10, "maxZoom": 17, "attribution":"Ordnance Survey imagery from <a href='https://www.bing.com/maps/'>Bing Maps</a>", "name":"osbing"}

The {q} represents Bing's quadkey value which combines {z}/{y}/{x}.  I dont know what the s means, but it may be a server as my GCDROID phone app uses http://ecn.t(l-0,1,2,3}.tiles.vitualearth.net

There must be a virtualearth URL format documented somewhere that allows {z}/{y}/{x} instead. I'll keep looking

Re: alternative maps

Reply #6
should have been l=0,1,2,3

I have read that Bing doesn't support x,y,z tile format. Conversion is possible using a java routine like
function tileXYToQuadKey(xTile, yTile, z) {
  var quadKey = "";
  for (var i = z; i > 0; i--) {
    var digit = "0",
    mask = 1 << (i - 1);
    if ((xTile & mask) != 0) {
      digit++;
    }
   
    if ((yTile & mask) != 0) {
      digit = digit + 2;
    }
    quadKey += digit;
  } // for i return quadKey;

  return quadKey;

Not sure if I can incorporate this into my own server in any way, but it would be interesting to try.

You mention Google. I assume this doesn't provide access to the OS maps I'm after?

Re: alternative maps

Reply #7
I can try to made a variation of the OS map setting in Geooh to use the Bing implementation by entering a personal key and then Geooh converts zxy to the sq equivalent. The function you showed... how are the sq parameters obtained from QuadKey? If you can provide a link to a reference source where you got the function, I could research more.



Re: alternative maps

Reply #10
Thanks for investigating this
The Bing OS server sounds like the right place, but the map should look like this.

What URL are you using?  It might need an approved key appended


Re: alternative maps

Reply #12
I can't follow that.  My understanding is that it is the productSet=mmOS option that sets the map display I use elsewhere.
I don't see that form when I select your OS map option.

The mm may relate to the MemoryMap application.

I'm now slightly worried about the Bing tiles article stating that apps must use Bing Maps Imagery REST service first to get the latest tile URL as I have 3 apps for which I have defined the same URL that I specified earlier so it seems they could stop working!

Anyway, it would be far better for me if you can embed the required links in your code rather than me having to type in the URL I want to use.  There maybe an issue in that I can use my key an unlimited number of times for personal use, whereas a key you obtain is likely to have usage restrictions

If you can produce a quadkey parameter option, then it would be the best of both worlds.


ps Locusmaps was one of the apps I used with that URL format.

Re: alternative maps

Reply #13
There is some confusion... I did all that. The new implementation uses an internal tile server URL (like the one you gave and what Locus uses) with a key assigned to Geooh by Microsoft. I am calculating the quadKey. There is nothing you need to provide. See how settings will look in the new release.

Re: alternative maps

Reply #14
Many thanks. I look forward to trying it out.

Meanwhile, I have all the existing options to explore as I only recently obtained your app and haven't yet used it in the field