Use num_changes to detect empty changesets instead of the bbox

This commit is contained in:
Tom Hughes 2011-07-12 15:55:17 +01:00
parent ea207f51cc
commit e5c80c80ad
3 changed files with 4 additions and 2 deletions

View file

@ -50,6 +50,7 @@
var bounds = new OpenLayers.Bounds();
<% @edits.each do |edit| %>
<% if edit.has_valid_bbox? %>
var minlon = <%= edit.min_lon / GeoRecord::SCALE.to_f %>;
var minlat = <%= edit.min_lat / GeoRecord::SCALE.to_f %>;
var maxlon = <%= edit.max_lon / GeoRecord::SCALE.to_f %>;
@ -60,6 +61,7 @@
addBoxToMap(bbox, "<%= edit.id %>", true);
<% end %>
<% end %>
vectors.events.on({
"featureselected": function(feature) {