PR fixup: make mobile work
PR fixup: make mobile work

* Mobile detection now checks whether the legend title is visible rather than just present
* Explicitly clear selection now that there's no popup whose close event will clear it

maurizi/nyc-trees,azavea/nyc-trees,maurizi/nyc-trees,kdeloach/nyc-trees,kdeloach/nyc-trees,azavea/nyc-trees,kdeloach/nyc-trees,maurizi/nyc-trees,maurizi/nyc-trees,azavea/nyc-trees,azavea/nyc-trees,azavea/nyc-trees,kdeloach/nyc-trees,kdeloach/nyc-trees