diff options
author | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 23:13:47 +0000 |
---|---|---|
committer | Christian Pointner <equinox@ffgraz.net> | 2013-12-29 23:13:47 +0000 |
commit | cf44f3ddd41b623f46dec46c947b2b8aec1ccc70 (patch) | |
tree | 8b401a10ebe1f8846c1e2caf9989647082245b30 /map.js | |
parent | 747dce83bffd46a9164cd8f8537ede14bb70e1b1 (diff) |
cleanups
Diffstat (limited to 'map.js')
-rw-r--r-- | map.js | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -13,9 +13,9 @@ var links = new Array(); debug = function (log_txt) { - if (typeof window.console != 'undefined') { - console.log(log_txt); - } + if (typeof window.console != 'undefined') { + console.log(log_txt); + } } function initialize(lat, lng, res) { @@ -23,18 +23,16 @@ function initialize(lat, lng, res) { $('#southeastcontainer').hide(); google.maps.visualRefresh=true; - var mapOptions = { - center: new google.maps.LatLng(lat, lng), - zoom: res, - streetViewControl: false, - disableDoubleClickZoom: true, - mapTypeId: google.maps.MapTypeId.ROADMAP, - mapTypeControlOptions: { - mapTypeIds: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID, - google.maps.MapTypeId.SATELLITE , google.maps.MapTypeId.TERRAIN ], - style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, - } - }; + var mapOptions = { + center: new google.maps.LatLng(lat, lng), zoom: res, + streetViewControl: false, disableDoubleClickZoom: true, + mapTypeId: google.maps.MapTypeId.ROADMAP, + mapTypeControlOptions: { + mapTypeIds: [google.maps.MapTypeId.ROADMAP, google.maps.MapTypeId.HYBRID, + google.maps.MapTypeId.SATELLITE , google.maps.MapTypeId.TERRAIN ], + style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, + } + }; map = new google.maps.Map(document.getElementById("map"), mapOptions); //##// map.addControl(new RulerControl()); |