a basic start to forward geocoding. Will center the map to geocoded
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 29 Nov 2009 00:09:28 +0000 (19:09 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sun, 29 Nov 2009 00:09:28 +0000 (19:09 -0500)
location, (SAPO can move the marker, but the Horde driver cannot yet, so
it's commented out).

kronolith/js/kronolith.js

index bac9ba5..774e26e 100644 (file)
@@ -2834,6 +2834,11 @@ KronolithCore = {
                 this.go('calendar:' + elt.next().retrieve('calendarclass') + '|' + elt.next().retrieve('calendar'));
                 e.stop();
                 return;
+
+            case 'kronolithEventGeo':
+                KronolithEventMap.geocode($F('kronolithEventLocation'));
+                e.stop();
+                return;
             }
 
             if (elt.hasClassName('kronolithEvent')) {
@@ -3508,7 +3513,7 @@ KronolithEventMap =
    onGeocode: function(r) { },
 
    geocode: function(a) {
-       var gc = new HordeMap.Geocoder[Kronolith.geocoderType]();
+       var gc = new HordeMap.Geocoder[Kronolith.conf.maps.geocoder]();
        gc.geocode(a, function(r) {
            r = r.shift();
            ll = new OpenLayers.LonLat(r.Longitude, r.Latitude);