-<%= javascript_include_tag '/openlayers/OpenLayers.js' %>
-<%= javascript_include_tag '/openlayers/OpenStreetMap.js' %>
+<%= javascript_include_tag 'openlayers.js' %>
<%= javascript_include_tag 'map.js' %>
<div id="changeset_list_map">
vectors.addFeatures(highlight);
- $("tr-changeset-" + id).addClassName("selected");
+ $("#tr-changeset-" + id).addClass("selected");
}
function unHighlightChangeset(id) {
vectors.removeFeatures(highlight);
- $("tr-changeset-" + id).removeClassName("selected");
+ $("#tr-changeset-" + id).removeClass("selected");
}
function init() {
selectControl.activate();
<% if ! @bbox.nil? %>
- setMapExtent(new OpenLayers.Bounds(<%= @bbox %>));
+ map.zoomToExtent(proj(new OpenLayers.Bounds(<%= @bbox %>)));
<% else %>
- setMapExtent(bounds);
+ map.zoomToExtent(proj(bounds));
<% end %>
}