Author: dom Date: 2008-03-11 14:02:38 +0000 (Tue, 11 Mar 2008) New Revision: 1154
Added: sites/oxford.openguides.org/static/resources/mapnik.js Log: add mapnik.js
Added: sites/oxford.openguides.org/static/resources/mapnik.js =================================================================== --- sites/oxford.openguides.org/static/resources/mapnik.js (rev 0) +++ sites/oxford.openguides.org/static/resources/mapnik.js 2008-03-11 14:02:38 UTC (rev 1154) @@ -0,0 +1,12 @@ +MapnikGetTileUrl = function (a,b,c) { + //var tile_size = 256; + //var p0 = new GPoint(a.x * tile_size,(a.y + 1) * tile_size); + //var p1 = new GPoint((a.x + 1)* tile_size, a.y * tile_size); + + //var UL = G_NORMAL_MAP.getProjection().fromPixelToLatLng(p0,b,c); + //var LR = G_NORMAL_MAP.getProjection().fromPixelToLatLng(p1,b,c); + + var url = this.myBaseURL + "/mapnik_tiles/" + b + "/" + a.x + "/" + a.y + ".png"; + + return url; +} \ No newline at end of file