' + '<' + '/script>'); //PÄR: Turned off until new idea of how to handle Clusters with MarkerManager showCluster = false; } var latitudeByRegion = ''; var longitudeByRegion = ''; var zoomlevelByRegion = ''; var map; var markers = []; var mgr; function init(){ if (GBrowserIsCompatible()) { // create the map map = new GMap2(document.getElementById("map")); map.addControl(new GLargeMapControl3D()); map.addControl(new GMapTypeControl()); map.addControl(new GOverviewMapControl()); map.addControl(new GScaleControl()); map.enableScrollWheelZoom(); map.setCenter(new GLatLng(data.latitude, data.longitude), data.zoom); //Read and set filter-cookies if (readCookie('filterSelection')) { //A cookie with filter selection exists, start by clearing the form var elem = document.getElementById('mapForm').elements; for (var i = 0; i < elem.length; i++) { if (elem[i].type == 'checkbox') { elem[i].checked = false; } } //Set the cookie values var arrFilterValues = readCookie('filterSelection').split(','); for (var i = 0; i < arrFilterValues.length; i++) { eval('elem.' + arrFilterValues[i] + '.checked = true'); } } //All javascript code in map_helper.js loadMarkers(); applyFilterAndLoadMap(); } else { alert("Sorry, the Google Maps API is not compatible with this browser"); } }