redmine2998.patch
src/main/webapp/mfbase/openlayers/Geocoder.js (working copy) | ||
---|---|---|
21 | 21 |
|
22 | 22 |
OpenLayers.Control.prototype.initialize.apply(this, [options]); |
23 | 23 |
try { |
24 |
this.geocoder = new GClientGeocoder();
|
|
24 |
this.geocoder = new google.maps.Geocoder();
|
|
25 | 25 |
} catch(err) { |
26 | 26 |
OpenLayers.Console.error("GClientGeocoder not available", err); |
27 | 27 |
} |
... | ... | |
66 | 66 |
} |
67 | 67 |
}, this); |
68 | 68 | |
69 |
this.geocoder.getLatLng(address, bound);
|
|
69 |
this.geocoder.geocode({"address":address}, bound);
|
|
70 | 70 |
}, |
71 | 71 | |
72 | 72 |
CLASS_NAME: "OpenLayers.Control.Geocoder" |