View Single Post
kempja's Avatar
Posts: 26 | Thanked: 2 times | Joined on Feb 2007 @ UK
#85
Ref posts #79 and #80,

I am trying to make this work but an struggling with the way maemo mapper catalogues it's tiles; Gnuite states that the tiles have paths thus:

$HOME/apps/maemo-mapper/[ZOOM]/[LATITUDE]/[LONGITUDE].jpg, but that bears no relation to where I live 51.433623, -1.276541 and the tiling for level 0 starts at 65055 file with tiles named 43656, 43657.....

I found this on mapki about MapCruncher; it may help:

The following code generates a tile file name for your custom tiles using the x,y and z tile parameters that get passed to GTileLayer.getTileUrl

TileToQuadKey ( tx, ty, zl) {
var quad;
quad = "";
for (var i = zl; i > 0; i--){
var mask = 1 << (i - 1);
var cell = 0;
if ((tx & mask) != 0)
cell++;
if ((ty & mask) != 0)
cell += 2;
quad += cell;
}
return quad;
}


Any ideas?

Thanks

Last edited by kempja; 2007-02-27 at 16:29.