       }
     }
   }
-  handler.buildMap { 
+  handler.buildMap {
     provider: {
       zoom: 4,
       center: new google.maps.LatLng(52.31, 13.22),

# handler.event.addListener(marker, 'mouseout', function() {
#   infowindow.close();
# })

      },
    }, internal: {id: 'map'} }, ->
    markers = handler.addMarkers(markers_arg)
    # makeIW markers
    # handler.bounds.extendWith(markers)
    # handler.fitMapToBounds()


    #
    # #console.log(markers);
    for marker in markers
    # #   marker.map = handler.getMap()
    #
    #   # content = document.createElement 'div'
    #   # content.innerHTML = "<strong>Hello world</strong> + JS ^_^"
    #   # infowindow = new google.maps.InfoWindow { content: marker.getServiceObject().innerHTML }


    #
    #   # console.log (marker.getServiceObject())
      google.maps.event.addListener marker.getServiceObject(), 'mouseover', ->
    #     marker.getServiceObject().infowindow.open handler.getMap(), marker.getServiceObject()
    # #       # handler.getMap().setZoom(0)
        # console.log @

        @infowindow = makeIW @title if !@infowindow
        @infowindow.open handler.getMap(), @
        return
    #     console.log(handler.getMap().getBounds().getNorthEast().toString())
    # #     return
    #

      google.maps.event.addListener marker.getServiceObject(), 'mouseout', ->
        @infowindow.close ''
        return
    #

    $('.map_link').click ->
      zoom = if handler.getMap().getZoom() == 4 then 0 else 4
      handler.getMap().setZoom(zoom)

# for marker in markers
#   google.maps.event.addListener marker, 'mouseover', ->
#     @infowindow.open handler.getMap() marker
#       # handler.getMap().setZoom(0)
#     # infowindow.open handler.getMap(), marker
#     console.log(handler.getMap().getBounds().getNorthEast().toString())
