This seems to work more reliable...

Other things might listen to zoomend before the map is synced...

Sorry
Merge pull request #10 from turban/final-fix

This seems to work more reliable...