Solved problems of main marker example

Hi,
the main marker example now works.
The problem, was that the initialization of the map view was relayed to the watch function. This left the map to an inconsistent state. Now the initialization is done in the setup function and the watch only watch for changes.