- var map = createMap("changeset_list_map", {
- controls: [
- new OpenLayers.Control.Navigation(),
- new OpenLayers.Control.Zoom(),
- new OpenLayers.Control.SimplePanZoom()
- ]
- });
-
- var bounds = new OpenLayers.Bounds();
-
- $("[data-changeset]").each(function () {
- var changeset = $(this).data('changeset');
- if (changeset.bbox) {
- var bbox = new OpenLayers.Bounds(changeset.bbox.minlon, changeset.bbox.minlat, changeset.bbox.maxlon, changeset.bbox.maxlat);
-
- bounds.extend(bbox);
+ function unHighlightChangeset(id) {
+ rects[id].setStyle({fillOpacity: 0});
+ $("#changeset_" + id).removeClass("selected");
+ }