From: Michael J. Rubinsky Date: Sun, 29 Nov 2009 00:09:28 +0000 (-0500) Subject: a basic start to forward geocoding. Will center the map to geocoded X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9e7ba2ab3ad9a4186e9a45fa5d7a2e69f522cc99;p=horde.git 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). --- 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);