Hi together,

I have an issue with google maps api 3 that drives me nuts. Hopefully
you can help me. Please have a look at the following page:
http://www.immobiliengaiser.de/immobilien/tempimmobilien/grenzach/schoene-3-zimmer-wohnung-og-in-grenzach-whylen/angebot-52-0-15
and then click on the tab "Karte". Now you will see my problem. How
can I solve this?

Here is my code:
-----%<-----
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<div id="map_canvas" style="display: block; width: 100%; height:
500px"></div>
<script type="text/javascript">
        var myLatlng;
        var map;
        var geocoder = new google.maps.Geocoder();

        var address = '<?php print $strasse ." ". $hausnummer .", ". $plz ."
". $ort; ?>';
        if (geocoder) {
                geocoder.geocode( { 'address': address}, function(results, 
status) {
                        if (status == google.maps.GeocoderStatus.OK) {
                                map.setCenter(results[0].geometry.location);

                                var marker = new google.maps.Marker({
                                        position: results[0].geometry.location,
                                        map: map
                                });

                                var infowindow = new google.maps.InfoWindow({
                                        content: "<p 
class='mapsinfowindow'><?php print '<small>'.
$objekttitel .'<br />'. $strasse .' '. $hausnummer .'<br /> '. $plz .'
'. $ort .'</small>'; ?></p>",
                                        position: results[0].geometry.location
                                });
                                infowindow.open(map, marker);
                        } else {
                                alert("Geocode was not successful for the 
following reason: " +
status);
                        }
                });
        }
        var myOptions = {
                zoom: 16,
                mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
</script>
-----%<-----

Greetings, Tobias

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to