         @.messages = {}
         @.setMessages()
 
+        @.googleRoueSearchesInProgresss = {}
+
     setMessages: ->
         @.messages[google.maps.DirectionsStatus.ZERO_RESULTS] = "Nie znaleziono trasy - rysuję linię prostą"
 


        # finally ask google
        _this = @
        @.directionsService.route(request, (response, status) ->
            if status == google.maps.DirectionsStatus.OK
                # write result to local cache

        @.redraw()

    isValid: ->
        # check if all google directions are already loaded
        if Object.keys(@.googleRoueSearchesInProgresss).length
            return false;

        if @.mainMarkers.length > 2
            return true;

