Use num_changes to detect empty changesets instead of the bbox
This commit is contained in:
parent
ea207f51cc
commit
e5c80c80ad
3 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue