-var highlight;
-
-function highlightChangeset(id) {
- var feature = vectors.getFeatureByFid(id);
- var bounds = feature.geometry.getBounds();
-
- if (bounds.containsBounds(map.getExtent())) {
- bounds = map.getExtent().scale(1.1);
- }
-
- if (highlight) vectors.removeFeatures(highlight);
-
- highlight = new OpenLayers.Feature.Vector(bounds.toGeometry(), {}, {
- strokeWidth: 2,
- strokeColor: "#ee9900",
- fillColor: "#ffff55",
- fillOpacity: 0.5
- });
-
- vectors.addFeatures(highlight);
-
- $("#tr-changeset-" + id).addClass("selected");
-}
-
-function unHighlightChangeset(id) {
- vectors.removeFeatures(highlight);
-
- $("#tr-changeset-" + id).removeClass("selected");
-}
-