]> git.openstreetmap.org Git - rails.git/commitdiff
Potlatch 0.4b: put POIs in ways; small SWF improvement; correct created_by for ways
authorRichard Fairhurst <richard@systemed.net>
Sun, 28 Oct 2007 16:07:23 +0000 (16:07 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sun, 28 Oct 2007 16:07:23 +0000 (16:07 +0000)
app/controllers/swf_controller.rb
public/potlatch/potlatch.swf

index 2c9d64548827a35880240eff7b9628d865e34039..18aa20774dfe5b0c32999bd8ed8d1fb3d571be96 100644 (file)
@@ -73,7 +73,7 @@ class SwfController < ApplicationController
                        ys=(lat2coord(row['lat'].to_f ,basey   ,masterscale)*20).floor
                        xl=[xs,xl].min; xr=[xs,xr].max
                        yb=[ys,yb].min; yt=[ys,yt].max
                        ys=(lat2coord(row['lat'].to_f ,basey   ,masterscale)*20).floor
                        xl=[xs,xl].min; xr=[xs,xr].max
                        yb=[ys,yb].min; yt=[ys,yt].max
-                       if (row['ts'].to_i-lasttime<180 and row['fileid']==lastfile)
+                       if (row['ts'].to_i-lasttime<180 and row['fileid']==lastfile and row['ts'].to_i!=lasttime)
                                b+=drawTo(absx,absy,xs,ys)
                        else
                                b+=startAndMove(xs,ys,'01')
                                b+=drawTo(absx,absy,xs,ys)
                        else
                                b+=startAndMove(xs,ys,'01')
index 4730e09814a4cca52c5ff1e6928a222544e9e2b1..edfb250937ed64c941d2c552977f92e5ce735533 100755 (executable)
Binary files a/public/potlatch/potlatch.swf and b/public/potlatch/potlatch.swf differ