Changeset 312


Ignore:
Timestamp:
04/01/09 19:08:15 (9 years ago)
Author:
sbenthall
Message:

can now add multiple layers at a time. "Add from URL" button changed to "Add
Layers". I have misgivings about the location of the button.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/opengeo/geoexplorer/trunk/lib/CapabilitiesGrid.js

    r304 r312  
    6767
    6868        this.tbar = ["->", new Ext.Button({
    69             text: "Add from URL",
     69            text: "Add Layers",
    7070            handler: this.addLayer,
    7171            scope : this
     
    9595        //TODO: force single selection (until we allow
    9696        //adding group layers)
    97         var record = sm.getSelected();
    98 
    99         this.mapPanel.layers.add([record.copy()]);
     97        var records = sm.getSelections();
     98       
     99        for(var i = 0; i < records.length; i++){
     100            var record = records[i];
     101            this.mapPanel.layers.add([record.copy()]);
     102        }
    100103
    101104    }
Note: See TracChangeset for help on using the changeset viewer.