Pull request for iPad friendly version

The new layer switcher with icons is integrated in this pull request.

Furthermore some old code is deleted.