Hello,

I am having a frustrating problem I have integrated google maps for my
advertisers, they pick country, city etc but it just shows exactly the
same place all the time it never changes no matter what is entered

here is the code i am using

<script src="http://maps.google.com/maps?
file=api&amp;v=2&amp;key=ABQIAAAAX5srx4gcN-
X9thQg3YXsdBQQVBRKLD6oQ5dWrcUbSrbLSoHWWRSfbxKXdMBTrCgoz7ZYB1ZzcQ3YgQ&sensor=true"

            type="text/javascript"></script>

    <script type="text/javascript">



   function initialize() {

      if (GBrowserIsCompatible()) {

        var map = new GMap2(document.getElementById("map_canvas"));

        map.setCenter(new GLatLng(37.4419, -122.1419), 13);

        map.setUIToDefault();

                var address = "<?=$item['village'].','.$item['state_name'].', '.
$item['country_name']?>";

                                //###################

                                var geocoder = new GClientGeocoder();

                                geocoder.getLatLng(address,function(point)

                                {

                                        if (!point)

                                        {

                                                alert(address + " not found on 
the map.");

                                        } else {

                                                map.setCenter(point, 13);

                                                var marker = new GMarker(point);

                                                map.addOverlay(marker);

                                                
marker.openInfoWindowHtml(address);

                                        }

                                 });

                                //###################

      }

    }



    </script>

-- 
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