From 768a82cc13d6678a68fb729eb16be603d2f1e325 Mon Sep 17 00:00:00 2001 From: Gregory Short Date: Sun, 12 Sep 2010 14:12:49 -0500 Subject: [PATCH] Fixed the debug overlay to properly use config.tileSize instead of a hard-coded 384, also explicitly set which map controls will be displayed so that the map type controls allowing the user to switch back to the default google maps don't appear. --- template.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/template.html b/template.html index f46fd3b..fbbfdf2 100644 --- a/template.html +++ b/template.html @@ -79,12 +79,15 @@ var mapOptions = { zoom: config.defaultZoom, center: new google.maps.LatLng(-45, 90), + navigationControl: true, + scaleControl: true, + mapTypeControl: false, mapTypeId: 'mcmap' }; map = new google.maps.Map(document.getElementById("mcmap"), mapOptions); if(config.debug) { - map.overlayMapTypes.insertAt(0, new CoordMapType(new google.maps.Size(384, 384))); + map.overlayMapTypes.insertAt(0, new CoordMapType(new google.maps.Size(config.tileSize, config.tileSize))); } // Now attach the coordinate map type to the map's registry