Mam problem z pobieraniem współrżednych za pomocą google maps. Wcześniej działało, a teraz lipa :/
Poniżej podaje mój kod:
<head> </head> <script type="text/javascript"> var mapa = new GMap2(document.getElementById("mapa")); mapa.setCenter(new GLatLng(52.4419, 16.1419), 13); var geocoder = new GClientGeocoder(); var gmx,gmy; var address; function geocodeResult(results) { if (results) { gmx=results.lat(); gmy=results.lng(); } else {gmx=0;gmy=0;} document.getElementById('gmx').value=gmx; document.getElementById('gmy').value=gmy; } function getGeoCode() { address ="Poland, "+document.getElementById('miasto').value+" "+document.getElementById('gmina').value; if (geocoder) {geocoder.getLatLng(address,geocodeResult);} } </script> <tr> </tr> <tr> </tr>
Nie wiem co się stało. Proszę o pomoc