conveyal / analyst-server

DEPRECATED; see https://github.com/conveyal/analysis-ui
MIT License
37 stars 6 forks source link

Update isochrones on drag rather than release #159

Open abyrd opened 8 years ago

abyrd commented 8 years ago

Even before we rework the isochrones, simply updating the layer when the threshold slider is moved instead of when it is released will make the interface feel more responsive and interactive.

abyrd commented 8 years ago

Changing analysis-single.js around line 193 to bind to the "slide" event rather than "slideStop" achieves the desired effect, but it's a bit sluggish on Firefox. The effect on Chrome and Safari is much smoother, but still a lot of flickering. I think this is just because the function being called (updateMap) peforms a lot of extra work, when all we really want to do is update the shapes in the isochrone layer.

On all browsers, it's very laggy for the accessibiilty results which are sent back as tiles.

I am sure this can be done smoothly but it will require some work.

abyrd commented 8 years ago

Actually isochrone animation is extremely smooth on Chrome under Linux. It looks great, and you can really perceive temporal aspects of the results on bike+transit trips from outlying areas, e.g. west of Troutdale near Portland.