 				scoresContent()
 			else if page == 'log'
 				logContent()
-	loadOpenStreetMap()
 
 exports.renderSettings = !->
 	if Db.shared

				log "OpenStreetMap files loaded"
				redraw.modify (v) -> v+1
		javascript.setAttribute 'src', 'https://api.tiles.mapbox.com/mapbox.js/v2.1.6/mapbox.js'
		document.getElementsByTagName('head')[0].appendChild javascript	

# Initialize the map with tiles
setupMap = ->
	Obs.observe ->
		log "setupMap"
		if map?
			log "  map already initialized"
		else if not L?

# ========== Events ==========
exports.render = ->
	log 'FULL RENDER'
	loadOpenStreetMap()
	# Ask for location
	if !Geoloc.isSubscribed()
		Geoloc.subscribe()
