 	###
 	loadOpenStreetMap()
 	setupMap()
+	#renderLocation();
 	
 loadOpenStreetMap = ->
 	# Only insert these the first time

# Check if the map can be used	
mapReady = ->
	return L? and map?
		

# Add flags to the map
renderFlags = ->
	log "rendering flags"
	Db.shared.observeEach 'game', 'flags', (flag) !->
		if mapReady() and map?
			if not window.flagMarkers?
				log "flagMarkers list reset"
				window.flagMarkers = [];
			location = L.latLng(flag.get('location', 'lat'), flag.get('location', 'lng'))
			log "Added circle"
			renderCircle(location.lat, location.lng, {})
			log "Added flag"
			marker = L.marker(location)
			marker.bindPopup("lat: " + location.lat + "<br>long: " + location.lng)
