Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ordnance Survey map to be used in QLandkarte GT.
<TMS>
<Title>Ordnance Survey</Title>
<Layer idx="0">
<Script><![CDATA[
(
function convert(z1, x1, y1)
{
serverpart = 0
serverpart = (serverpart + 1) % 4;
function encodeQuadTree(zoom, tilex, tiley)
{
var tileNum = []
for (var i = zoom - 1; i >= 0; i--)
{
var num = (tilex % 2) | ((tiley % 2) << 1);
tileNum[i] = new String(num);
tilex >>= 1;
tiley >>= 1;
}
return tileNum.join("");
}
return "http://ak.t" + serverpart + ".tiles.virtualearth.net/tiles/r" + encodeQuadTree(z1,x1,y1) + ".png?g=3291&productSet=mmOS";
}
)
]]></Script>
</Layer>
<Copyright>Ordnance Survey</Copyright>
</TMS>
@aembleton

This comment has been minimized.

Copy link
Owner Author

aembleton commented Feb 19, 2015

To use this tms file:

  1. Install QLandkarte GT. You can get it from http://sourceforge.net/projects/qlandkartegt/
  2. Open QLandkarte GT.
  3. Go to File > Load Map
  4. Download this tms file and select it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.