1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38:
| <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=yes" /> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript">
var map; var bonnlat = 50.76222; var bonnlon = 7.08011;
function initialize() { alert( 'ichbindrin1' ); var latlng = new google.maps.LatLng( bonnlat, bonnlon); var myOptions = { zoom: 14, // 1-ganze Welt ... 18-Mülltonne center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP //Set the default type map }; alert( 'ichbindrin2' ); map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); alert( 'ichbindrin3' ); }
function GotoLatLng(Lat, Lang) { //Set the map in the coordinates and put a marker var latlng = new google.maps.LatLng(Lat,Lang); map.setCenter(latlng); var marker = new google.maps.Marker({ position: latlng, map: map, title:Lat+","+Lang }); } </script> </head> <body onload="initialize()"> <div id="map_canvas" style="width:100%; height:100%"></div> </body> </html> |