
function getPeatusIcon() {
      
        var icon = new GIcon();
        icon.image = "img/bus_stop.png";
        icon.iconAnchor = new GPoint(16, 16);
        icon.infoWindowAnchor = new GPoint(16, 0);
        icon.iconSize = new GSize(20, 20);
        return icon;
      
    }
    
function getPeatusedIcon() {
        var icon = new GIcon();
        icon.image = "img/bus_stops.png";
        icon.iconAnchor = new GPoint(16, 16);
        icon.infoWindowAnchor = new GPoint(16, 0);
        icon.iconSize = new GSize(20, 20);
        return icon;
}

function getPeatusedSmallIcon() {
        var icon = new GIcon();
        icon.image = "img/bus_stops.png";
        icon.iconAnchor = new GPoint(16, 16);
        icon.infoWindowAnchor = new GPoint(16, 0);
        icon.iconSize = new GSize(20, 20);
        return icon;
}

function initializeMap() {  
	setupMap();
	return ;
	var myLatlng = new google.maps.LatLng(58.1555829249, 25.4361821471);  
	var myOptions = {    zoom: 12,    center: myLatlng,    mapTypeId: google.maps.MapTypeId.ROADMAP  };  
	map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);  

	var image = "img/bus_stop.png";  var myLatLng0 = new google.maps.LatLng(58.15558292492279, 25.436182147094737);  
	var beachMarker = new google.maps.Marker({      position: myLatLng0,      map: map,      icon: image, title:"Kuressaare bussijaam"  });  
	google.maps.event.addListener(beachMarker, "click", function() {    
		$($('#activeMapSelection').val()).val('Kuressaare');
		hideModalWindow();
});}



function setupMap() {
  if (GBrowserIsCompatible()) { 
  
    map = new GMap2(document.getElementById("map_canvas"));
    
    map.setCenter(new GLatLng(58.80290353934242, 25.23559582812501), 7); 
     
    map.addControl(new GLargeMapControl()); 
    window.setTimeout(setupWeatherMarkers, 0); 
  } 
} 

function setupWeatherMarkers() { 
  mgr = new MarkerManager(map); 
  mgr.addMarkers(getCityMarkers(20), 3); 
  mgr.addMarkers(getSmallMarkers(), 9); 
  mgr.addMarkers(getCombiMarkers(1000), 3, 8); 
  mgr.refresh(); 
}

