codesite-noreply at google.com
2009-Sep-14 17:49 UTC
[Mapstraction] [mapstraction] r26 committed - do replacement in tileLayer url globally rather than just first occura...
Revision: 26 Author: freyfogle Date: Mon Sep 14 10:49:22 2009 Log: do replacement in tileLayer url globally rather than just first occurance http://code.google.com/p/mapstraction/source/detail?r=26 Modified: /trunk/source/mxn.google.core.js ======================================--- /trunk/source/mxn.google.core.js Thu Aug 27 10:43:39 2009 +++ /trunk/source/mxn.google.core.js Mon Sep 14 10:49:22 2009 @@ -315,9 +315,9 @@ }; tilelayers[0].getTileUrl = function (a, b) { url = tile_url; - url = url.replace(/\{Z\}/,b); - url = url.replace(/\{X\}/,a.x); - url = url.replace(/\{Y\}/,a.y); + url = url.replace(/\{Z\}/g,b); + url = url.replace(/\{X\}/g,a.x); + url = url.replace(/\{Y\}/g,a.y); return url; }; tileLayerOverlay = new GTileLayerOverlay(tilelayers[0]);