Refactor code and fix documentation for mapviewer example.


Refactor code so the MapComponent holds the most of revelant
code for documenting. Rewrite mapviewer example documentation
so it fits the current code snippets.

Change-Id: Idf468d2025303a42cea6ca8d24ed541c509911c0
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
commit8ccac8432b9575e2dbf49e9e887c2581bcee308f
parent1901c8bc9e1d2a931d541f77b08654b4017f5b5c
authorMichal Klocek <michal.klocek@theqtcompany.com>
committerMichal Klocek <michal.klocek@theqtcompany.com>
commit timeTue, 14 Apr 2015 08:35:54 +0000