From 9e7ba2ab3ad9a4186e9a45fa5d7a2e69f522cc99 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 28 Nov 2009 19:09:28 -0500 Subject: [PATCH] a basic start to forward geocoding. Will center the map to geocoded location, (SAPO can move the marker, but the Horde driver cannot yet, so it's commented out). --- kronolith/js/kronolith.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index bac9ba5f2..774e26eb7 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -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); -- 2.11.0