Revision 4307
Added by ben leinfelder over 15 years ago
Caps2Context.js | ||
---|---|---|
1 |
/* |
|
2 |
Author: |
|
3 |
License: LGPL as per: http://www.gnu.org/copyleft/lesser.html |
|
4 |
|
|
5 |
$Id: Caps2Context.js 3881 2008-02-27 15:41:07Z gjvoosten $ |
|
6 |
*/ |
|
7 |
|
|
8 |
// Ensure this object's dependancies are loaded. |
|
9 |
mapbuilder.loadScript(baseDir+"/tool/ToolBase.js"); |
|
10 |
|
|
1 | 11 |
/** |
2 | 12 |
|
3 | 13 |
* Build a Web Map Context (WMC) from a Web Map Server getCapabilities response. |
... | ... | |
32 | 42 |
|
33 | 43 |
for (var j=0;j<toolNode.childNodes.length;j++) { |
34 | 44 |
|
35 |
if (toolNode.childNodes[j].firstChild && toolNode.childNodes[j].firstChild.nodeValue) {
|
|
45 |
if (getNodeValue(toolNode.childNodes[j])) {
|
|
36 | 46 |
|
37 |
this.stylesheet.setParameter(toolNode.childNodes[j].nodeName,toolNode.childNodes[j].firstChild.nodeValue);
|
|
47 |
this.stylesheet.setParameter(toolNode.childNodes[j].nodeName,getNodeValue(toolNode.childNodes[j]));
|
|
38 | 48 |
|
39 | 49 |
} |
40 | 50 |
|
Also available in: Unified diff
upgrade to MapBuilder 1.5rc2 - includes support for Firefox 3 compatibility (yes, it is also EOLed)