 		mainElement = document.getElementsByTagName("main")[0]
 		mainElement.setAttribute 'id', 'main'
 		redraw.get();
-		limitToBounds()
 		gameState = Db.shared.get('gameState')
 		if gameState is 0 # Setting up game by user that added plugin
 			setupContent()

		log "setupMap()"
		if map?
			log "map already initialized"
		else if not L?
			log "javascript not yet loaded"
		else

			window.map = L.mapbox.map('OpenStreetMap', 'nlthijs48.4153ad9d', {center: [52.249822176849, 6.8396973609924], zoom: 13, zoomControl:false, updateWhenIdle:false, detectRetina:true})
			layer = L.mapbox.tileLayer('nlthijs48.4153ad9d', {reuseTiles: true})
			log "Initialized MapBox map"
			limitToBounds()

# Setup map bounds
limitToBounds = ->
