Skip to content
Snippets Groups Projects
Commit 1df3be2b authored by webgeer's avatar webgeer
Browse files

Fix some little problems with geocoding

parent 90cdb4e4
No related branches found
No related tags found
No related merge requests found
...@@ -90,14 +90,14 @@ function gmap_geocodeaddress(thismap) { ...@@ -90,14 +90,14 @@ function gmap_geocodeaddress(thismap) {
$("gmap-address").value, $("gmap-address").value,
function(point) { function(point) {
if (!point) { if (!point) {
alert(address + " not found"); alert($("gmap-address").value + " not found");
} else { } else {
if (thispoint) { if (thispoint) {
thismap.removeOverlay(thispoint); thismap.removeOverlay(thispoint);
} }
map.setCenter(point, 13); thismap.setCenter(point, 13);
var thispoint = new GMarker(point); var thispoint = new GMarker(point);
map.addOverlay(thispoint); thismap.addOverlay(thispoint);
$("gmap-latitude").value=point.lat(); $("gmap-latitude").value=point.lat();
$("gmap-longitude").value=point.lng(); $("gmap-longitude").value=point.lng();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment