 
   constructor: (opts) ->
     super opts
-    console.log "spectrum: ", @spectrum
     @circles = []
     @limit = @limit or 30
 

        s: s

      url = convertTileUrl(tilePoint.x, tilePoint.y, 1, zoom)
      console.log url
      return "/images/tiles/#{spectrum}/#{url.src}.jpg"

    @layer.addTo @map

    
  createSky: (spectrum) =>
    id = "#{@el.attr('id')}-leaflet"
    @el.append """<div id="#{id}" style="margin: 20px; width: 100%; height: 100%; text-align: left; position: relative;"></div>"""
    @el.css { overflow: 'hidden' }
    @map = L.map(id, Map.mapOptions).setView([0, 180], 4)
    @layer = L.tileLayer("/images/tiles/#{spectrum}/" + '#{tilename}.jpg',
      maxZoom: 7
    )
