changeset 121:b7bdd9a4c807 gmap2

Add overlay layer.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 08 Mar 2014 21:30:44 +0200
parents 3b725e8ac51a
children ccaa433dbd36
files map.js
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/map.js	Sat Mar 08 21:30:32 2014 +0200
+++ b/map.js	Sat Mar 08 21:30:44 2014 +0200
@@ -21,10 +21,12 @@
 
 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);