From 8446e6ccc7e0e1d3cd6b31a890d667e46fb7ed98 Mon Sep 17 00:00:00 2001 From: Mike Tigas Date: Sat, 7 Aug 2010 23:14:23 -0700 Subject: [PATCH] mobile template (testing iPhone performance) --- src/gheat_demo/templates/home-mobile.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/gheat_demo/templates/home-mobile.html b/src/gheat_demo/templates/home-mobile.html index d50786c..086eecd 100644 --- a/src/gheat_demo/templates/home-mobile.html +++ b/src/gheat_demo/templates/home-mobile.html @@ -26,20 +26,22 @@ var map; function initialize() { - map = new google.maps.Map(document.getElementById("map")); - map.setCenter(new google.maps.LatLng(38.9517053, -92.3340724)); - map.setZoom(4); - map.setMapTypeId('terrain'); + map = new google.maps.Map(document.getElementById("map"), { + zoom: 6, + center:new google.maps.LatLng(38.9517053, -92.3340724), + mapTypeControl: true, + mapTypeControlOptions: { + style: google.maps.MapTypeControlStyle.DROPDOWN_MENU + }, + mapTypeId: google.maps.MapTypeId.TERRAIN + }); map.overlayMapTypes.insertAt(0, heatmap); }