This is a discussion on Google Maps API within the Coding Help forums, part of the Webmaster Help category; Is there anyone in out there thats any good with the google maps api, im trying to replecate the top ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| Is there anyone in out there thats any good with the google maps api, im trying to replecate the top part of this page Google Maps Latitude, Longitude Popup, the Lat and Lon boxes that are populated once you click on the map! Been at it 4 days now and going round the bend!?? |
| ||||
| Here's a function I use to do exactly this: GEvent.addListener(map, 'click', function(overlay,point) { map.clearOverlays(); var icon2 = new GIcon(baseIcon); icon2.image = "../../_images/googlemap/icon-blue.png"; map.addOverlay(new GMarker(point, icon2)); var coordsForm = document.forms["form1"]; coordsForm["lstMapX"].value = point.x; coordsForm["lstMapY"].value = point.y; });
__________________ David Behan Web Design | Mortgages | Memorial Websites | Digital Printing | Golf Holidays Portugal | Conservatories |
| |||||
| Got it sorted, thanks anyway. |
| Tags |
| api, google, maps |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to Avoid the Google Sandbox | Cormac | Webmaster Articles | 26 | 18-02-2008 05:38 AM |
| Google Maps - New "My Maps" Tool | davidbehan | Webmaster Discussion | 3 | 01-05-2007 12:15 PM |
| Google maps Vs MSN | figment | Coding Help | 6 | 17-01-2007 02:24 AM |
| Google Axes SOAP API | daviddoran | Webmaster Discussion | 4 | 31-12-2006 05:30 PM |
| New Google Maps tool | altyfc | Webmaster Discussion | 0 | 13-11-2006 11:13 PM |
| ||||||||
| | ![]() | |||||||