- OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
-
- function init() {
- var centre = new OpenLayers.LonLat(<%= lon %>, <%= lat %>);
- var zoom = <%= zoom %>;
-
- var map = createMap("map");
-
- setMapCenter(centre, zoom);
-
- map.events.register("click", map, setLocation);
- }
-
- function setLocation( e ) {