                 map.panTo center
                 map.setZoom zoom  if zoom
                 map.panBy adjust, 0
-              ), 0
+            , 0
         else
             map.panTo center
             if zoom then map.setZoom zoom

    eob_msg.callbacks.push (msg) ->
        $scope.$apply ->
            $scope.messages.push msg
            $timeout (-> $scope.remove msg), MESSAGE_TIMEOUT
    return
]


        # The panel might be changing right now, in which case
        # 'offsetWidth' returns 0, so let's deffer this
        if $scope.seepanel or $scope.seemenu
            $timeout ->
                mapWidth = document.getElementById("map-canvas").offsetWidth
                panelWidth = if not $scope.seepanel \
                             then 0
