Viewpoint mapping to support mobile devices

Preliminary implementation for the issue #174.