Skip to content
santilland edited this page Sep 23, 2013 · 17 revisions

Map

  • map:center, {x:float, y:float, l:float}
    Passes Lat, Long and Zoom values (triggered by router)
  • map:layer:change {name:string, isBaseLayer:boolean, visible:boolean}
    Passes Layer name and boolean values describing if layer is base layer and if visibility was activated or deactivated (triggered by LayerItemView)

Selection

  • selection:enabled, {id:string, enabled:boolean}
    Event triggered to enable/disable the tool button from the tool view (triggered by DownloadController)
  • selection:activated, {id:string, active:boolean}
    Event triggered when a selection tool is activated/deactivated from the tool view (triggered by ToolItemView)
  • selection:changed, geometry (Openlayers.Geometry) Fires when new geometry selected in map, can be null when selections are removed. The type has to be changed to a generic type (triggered by MapView)

Dialog

  • dialog:close, "download" (Download Controller)

Product Collection

  • productCollection:update-sort, {model:this.model, position:index} (LayerItemView)
  • productCollection:sort-updated (LayerSelectionView)

Router

  • Router:SetUrl, { x: data.object.center.lon, y: data.object.center.lat, l: data.object.zoom} (MapView)

Time

  • time:change, {start:, end:} - Fired when selection in TimeSlider changes(TimeSliderView)

Navbar Events (Config File)

  • These events are raised from NavBarItemView when a NavBarItem is clicked:
    • ui:open:layercontrol
    • ui:open:toolselection
    • dialog:open:about
    • dialog:open:info
    • dialog:open:help
Clone this wiki locally