Hi, i want to show a adress in Google Map on my own site.
<script type="text/javascript"> var geocoder; var map; function initialize() { geocoder = new google.maps.Geocoder(); var address = "Berlin Am Reichstag 1"; geocoder.geocode( { 'address': address}, function(results, status){ alert (results[0].geometry.location); if (status == google.maps.GeocoderStatus.OK) { var latlng = new google.maps.LatLng(results[0].geometry.location); var myOptions = { zoom: 15, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP } } } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); } </script> </head> <body onload="initialize()"> <div id="map_canvas" style="height:90%"></div> </body> </html> But it doesn't show a card. Where is my problem? Best regards, Stefan -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.