Can you please provide a link...
On May 11, 1:45 pm, "[email protected]" <[email protected]> wrote: > <script src="http://maps.google.com/maps? > file=api&v=2.x&key=your key" type="text/javascript"></script> > <script type="text/javascript"> > > var map = null; > var geocoder = null; > var map = null; > var geocoder = null; > > function initialize() { > if (GBrowserIsCompatible()) { > map = new GMap2(document.getElementById("map_canvas")); > map.setCenter(new GLatLng(1.3714, 103.8861), 13); > map.addControl(new GSmallMapControl()); > geocoder = new GClientGeocoder(); > } > } > > function showAddress(address) { > if (geocoder) { > geocoder.getLatLng( > address, > function(point) { > if (!point) { > alert(address + " not found"); > } else { > map.setCenter(point, 10); > var marker = new GMarker(point); > map.addOverlay(marker); > } > } > ); > } > } > > </script> > > <?php $map_address="australia"; ?> // I need to have this in order to > activate php > <BODY onload="initialize(); showAddress('<?php echo $map_address; ? > > >');" onunload="GUnload();"> > > I need it to go directly to australia map using the geocoder instead > of viewing the first map by longitude and latitude.. Is there a way to > do it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
