Revision 4307
Added by ben leinfelder over 15 years ago
ObjectList.js | ||
---|---|---|
2 | 2 |
Author: Tom Kralidis |
3 | 3 |
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html |
4 | 4 |
|
5 |
$Id$ |
|
5 |
$Id: ObjectList.js 3094 2007-08-09 12:29:59Z gjvoosten $
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
// Ensure this object's dependancies are loaded. |
9 |
mapbuilder.loadScript(baseDir+"/widget/WidgetBase.js"); |
|
9 |
mapbuilder.loadScript(baseDir+"/widget/WidgetBaseXSL.js");
|
|
10 | 10 |
|
11 | 11 |
/** |
12 |
* Widget to display predefined locations (as per schema at lib/model/schemas/locations.xsd) |
|
13 |
* into a HTML select box. Changing a location will set the AOI of the targetModel. |
|
14 |
* TBD: projection coordinate conversion still to be implemented. |
|
15 | 12 |
* @constructor |
16 |
* @base WidgetBase |
|
13 |
* @base WidgetBaseXSL
|
|
17 | 14 |
* @param widgetNode This widget's object node from the configuration document. |
18 | 15 |
* @param model The model that this widget is a view of. |
19 | 16 |
*/ |
20 |
|
|
21 |
|
|
22 | 17 |
function ObjectList(widgetNode, model) { |
23 | 18 |
WidgetBaseXSL.apply(this,new Array(widgetNode, model)); |
24 | 19 |
|
25 |
/** |
|
26 |
* Change the AOI coordinates from select box choice of prefined locations |
|
27 |
* @param bbox the bbox value of the location keyword chosen |
|
28 |
* @param targetModel the model on which to set the AOI |
|
29 |
*/ |
|
30 | 20 |
this.showDetails = function(objectType) { |
31 | 21 |
var details = config.objects.objectDetails; |
32 | 22 |
details.stylesheet.setParameter("objectType",objectType); |
Also available in: Unified diff
upgrade to MapBuilder 1.5rc2 - includes support for Firefox 3 compatibility (yes, it is also EOLed)