Project

General

Profile

redmine2998.patch

Skye Roseboom, 2012-06-21 16:11

Download (857 Bytes)

View differences:

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"
Add picture from clipboard (Maximum size: 14.8 MB)