// JavaScript Document // Hier sind die JS-Funktionen, die wir brauchen! function login_send_img(imgvalue){ $('show_image_url').value = imgvalue; } function go_to_loc(loc){ window.location.href = loc; } var geocoder; var map; function the_map() { geocoder = new google.maps.Geocoder(); var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 15, center: latlng, disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("location_map"), myOptions); } function mk_map(addr){ geocoder.geocode( { 'address': addr}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }); } else { alert("Geocode was not successful for the following reason: " + status); } }); }