]> git.openstreetmap.org Git - rails.git/commitdiff
more accurate unwayed segments display; warning icon flashes and has a Helpful Tooltip
authorRichard Fairhurst <richard@systemed.net>
Sun, 24 Jun 2007 16:23:12 +0000 (16:23 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sun, 24 Jun 2007 16:23:12 +0000 (16:23 +0000)
app/controllers/swf_controller.rb
public/potlatch/potlatch.swf

index cd9bf182323c7fc93b42223a5e72e12718ad7740..a93abc8ddd31987edb7d0a088a10a0424ad43a6b 100644 (file)
@@ -99,6 +99,7 @@ class SwfController < ApplicationController
                                " WHERE (cn1.longitude BETWEEN #{xmin} AND #{xmax})"+
                                "   AND (cn1.latitude  BETWEEN #{ymin} AND #{ymax})"+
                                "   AND segment_id IS NULL"+
+                               "   AND current_segments.visible=1"+
                                "   AND cn1.id=node_a AND cn1.visible=1"+
                                "   AND cn2.id=node_b AND cn2.visible=1"
                        seglist=ActiveRecord::Base.connection.select_all sql
index a6aa916463b856b3a2957133b28656aa66b621a5..ad3c2180af8740f40b9b6a3a6518dcfb42b6066a 100755 (executable)
Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ