anchor.diff:      markers.push marker
   
       google.maps.event.addListener marker, 'click', =>
  -      content = render_relic_info(this)
  -      show_content_window(marker, content)
  +      loadRelicInfo "relic:#{@id}", (content) ->
  +        show_content_window(marker, content)
   
     if gmap.getZoom() > 11 and POLYGON?
       image_urls = gmap_circles
  
positive.code:         clickable: true
          optimized: false
  
        load_relic_info = (callback) =>
          search_params
          search_params.api_key = "oz"
          search_params.location = "#{@type}:#{@id}"
          $.get Routes.api_v1_relics_path(search_params), (result) ->
            callback(render_relic_info(result.relics[0]))
          , "json"
  
        google.maps.event.addListener marker, 'click', ->
          load_relic_info (content) ->
            show_content_window(marker, content)
  
    $.each search_results, ->
  
negative.code: 
      marker.info_window.open(gmap, marker)
  
  renderRelicInfo = (relic) ->
    photo = if relic.main_photo then "<div class='photo-wrapper'><img src='#{relic.main_photo.file.midi.url}' width='50' height='50'></div>" else ""
    link = "<a href='#{Routes.relic_path(relic.id)}' target='_blank'>więcej »</a>"
    "<div class='relic-info'>#{photo}<div class='relic-info-content'><h3>#{relic.identification}</h3><div>#{relic.street}</div><div>#{link}</div></div></div>"
  
  loadRelicInfo = (location, callback) ->
    gmap.onNextMovement ->
    search_params = {}
    if bounds = gmap.getLatLngBounds()
      search_params.bounding_box = bounds.toString()
    search_params.api_key = "oz"
    search_params.per_page = 1
    search_params.location = location
    $.get Routes.api_v1_relics_path(search_params), (result) ->
      callback(renderRelicInfo(result.relics[0]))
    , "json"
  
  markers = []
  overlays = []
  