");google.maps.event.addListener(marker_be097345_c685_4aed_9d07_db880fac9850,"click",function(event){ib_map.setContent(this.get("content"));ib_map.open(map,this);mapCanvas.marker_click(event)});var myLatlng=new google.maps.LatLng(38.2236169669838,20.58013916015625);var marker_icon={url:"http://kithira.project-ariadni.gr/assets/img/markers/start_marker.png"};var markerOptions={map:map,id:'marker_start_marker',position:myLatlng,latitude:38.2236169669838,longitude:20.58013916015625,added_to_route:false,remove_from_route:false,in_route:false,icon:marker_icon,visible:false};marker_start_marker=createMarker_map(markerOptions);var myLatlng=new google.maps.LatLng(38.2236169669838,20.58013916015625);var marker_icon={url:"http://kithira.project-ariadni.gr/assets/img/markers/start_marker.png"};var markerOptions={map:map,id:'marker_public_start_marker',position:myLatlng,latitude:38.2236169669838,longitude:20.58013916015625,added_to_route:false,remove_from_route:false,in_route:false,icon:marker_icon,visible:false};marker_public_start_marker=createMarker_map(markerOptions);var myLatlng=new google.maps.LatLng(38.2236169669838,20.58013916015625);var marker_icon={url:"http://kithira.project-ariadni.gr/assets/img/markers/end_marker.png"};var markerOptions={map:map,id:'marker_end_marker',position:myLatlng,latitude:38.2236169669838,longitude:20.58013916015625,added_to_route:false,remove_from_route:false,in_route:false,icon:marker_icon,visible:false};marker_end_marker=createMarker_map(markerOptions);var myLatlng=new google.maps.LatLng(38.2236169669838,20.58013916015625);var marker_icon={url:"http://kithira.project-ariadni.gr/assets/img/markers/end_marker.png"};var markerOptions={map:map,id:'marker_public_end_marker',position:myLatlng,latitude:38.2236169669838,longitude:20.58013916015625,added_to_route:false,remove_from_route:false,in_route:false,icon:marker_icon,visible:false};marker_public_end_marker=createMarker_map(markerOptions);mapCanvas.show_all_available_markers()}
function createMarker_map(markerOptions){var marker=new google.maps.Marker(markerOptions);markers_map.push(marker);lat_longs_map.push(marker.getPosition());return marker;}
function calcRoute(start,end){var request={origin:start,destination:end,travelMode:google.maps.TravelMode.DRIVING,waypoints:waypoints};directionsService.route(request,function(response,status){if(status==google.maps.DirectionsStatus.OK){directionsDisplay.setDirections(response);}else{switch(status){case"NOT_FOUND":{alert("Either the start location or destination were not recognised");break}
case"ZERO_RESULTS":{alert("No route could be found between the start location and destination");break}
case"MAX_WAYPOINTS_EXCEEDED":{alert("Maximum waypoints exceeded. Maximum of 8 allowed");break}
case"INVALID_REQUEST":{alert("Invalid request made for obtaining directions");break}
case"OVER_QUERY_LIMIT":{alert("This webpage has sent too many requests recently. Please try again later");break}
case"REQUEST_DENIED":{alert("This webpage is not allowed to request directions");break}
case"UNKNOWN_ERROR":{alert("Unknown error with the server. Please try again later");break}}}});}
google.maps.event.addDomListener(window,"load",initialize_map);