azavea/OTM2 — pull request #1137 by RickMohr (2014-02-24 21:33:08+00:00)
Title: Make tree tiles appear faster on load

1) We were adding layers before setting the initial zoom level, causing Leaflet to request tiles at zoom level 2 which we weren't using. Solved by setting initial zoom level before adding layers.

2) Tiler requests for the UTF grid were all being made before tiler requests for visible tiles, delaying the appearance of visible tiles. Solved by delaying adding the UTF grid layer. On my 40,000-tree instance this doesn't appear to prevent clicking on a tree as soon as it appears. We'll see how it works with Edmonton's 250,000 trees.