changeset 92:45907866e3a9 gmap2

Disable currently unused second tile layer.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 16 Oct 2011 02:21:30 +0300
parents e4a37528f1a7
children 2324a519ebec
files map.js
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/map.js	Sun Oct 16 02:20:37 2011 +0300
+++ b/map.js	Sun Oct 16 02:21:30 2011 +0300
@@ -20,11 +20,15 @@
 var cc = new GCopyrightCollection('BatMUD');
 cc.addCopyright(copyright);
 
-var tl = [new GTileLayer(cc, 2, 10),
-	  new GTileLayer(cc, 2, 10)];
+var tl = [new GTileLayer(cc, 2, 10)
+/*
+,
+	  new GTileLayer(cc, 2, 10)
+*/
+];
 
 tl[0].getTileUrl = function(a,b) { return "tiles/"+(b)+"/"+a.y+"/"+a.x+".png"; }
-tl[1].getTileUrl = function(a,b) { return "overlay.php?x="+a.x+"&y="+a.y+"&zoom="+(b); }
+//tl[1].getTileUrl = function(a,b) { return "overlay.php?x="+a.x+"&y="+a.y+"&zoom="+(b); }
 
 var custommap = new GMapType(tl, new GMercatorProjection(12),"BatMud", {errorMessage:"No data available"});
 map.addMapType(custommap);