Get Tile URL function in Custom Maps

  • trax.namibia
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #101 by trax.namibia
Get Tile URL function in Custom Maps was created by trax.namibia
Bing Map Tiles Layer:

Can anybody help with a the code for obtaining Bing Map Tiles as a Custom Map type? I have looked at the following site which documents the URL for many tile servers, but I don't have the skills to write the code.

www.neongeo.com/wiki/doku.php?id=map_servers


__________________________________________________________________

Google Satellite 'Labels' Layer

Google Maps Satellite 'Labels' layer. For thoes that might have the need to use the Google Maps Satellite 'Labels' layer on their own satellite images, the following code has been tested and works:

function(ll, z) {
var k = (ll.x + ll.y) % 4;
var X = ll.x % (1 << z); // wrap
var e = (ll.x*3+ll.y)%8;
var s = "Galileo".substr(0,e);
return "http://mt" + k + ".google.com/vt/imgtp=png32&lyrs=h&hl=en-US&x=" + X + "&y=" + ll.y + "&z=" + z + "&s=" + s;
}

Please Log in or Create an account to join the conversation.

Time to create page: 0.335 seconds
Powered by Kunena Forum