Project

General

Profile

« Previous | Next » 

Revision 3137

Added by perry over 17 years ago

ESA server does some funky things to relative URLS so we have to hardcode the esa skin urls to use a specific root and context

View differences:

lib/style/skins/esa/spatial/map.html
3 3
<head>
4 4
<title>Metacat Spatial Option Demo</title>
5 5

  
6
<link rel='StyleSheet' type='text/css' href='../../../../spatial/mapbuilder/lib/skin/default/docsStyle.css'>
7
<link rel='StyleSheet' type='text/css' href='../../../../spatial/mapbuilder/lib/skin/default/mapStyle.css'>
8
<link rel='StyleSheet' type='text/css' href='../../../../spatial/mapbuilder/lib/skin/default/button.css'>
9
<link rel='StyleSheet' type='text/css' href='../../../../spatial/mapbuilder/lib/skin/default/scalebar-fat.css'>
6
<link rel='StyleSheet' type='text/css' href='/esa/spatial/mapbuilder/lib/skin/default/docsStyle.css'>
7
<link rel='StyleSheet' type='text/css' href='/esa/spatial/mapbuilder/lib/skin/default/mapStyle.css'>
8
<link rel='StyleSheet' type='text/css' href='/esa/spatial/mapbuilder/lib/skin/default/button.css'>
9
<link rel='StyleSheet' type='text/css' href='/esa/spatial/mapbuilder/lib/skin/default/scalebar-fat.css'>
10 10

  
11 11
<script type="text/javascript">
12 12
  var mbConfigUrl="config.xml";
13 13
</script>
14 14

  
15
<script type="text/javascript" src="../../../../spatial/mapbuilder/lib/Mapbuilder.js"></script>
15
<script type="text/javascript" src="/esa/spatial/mapbuilder/lib/Mapbuilder.js"></script>
16 16
</head>
17 17
<body onload="mbDoLoad()">
18 18

  
......
22 22
              <div id="mainMapPane" style="background-color:#b8d5f5;" />
23 23
              <div id="loading">
24 24
               <p> Loading Map
25
                <img src="../../../../spatial/mapbuilder/lib/skin/default/images/Loading.gif"/>
25
                <img src="/esa/spatial/mapbuilder/lib/skin/default/images/Loading.gif"/>
26 26
               </p>
27 27
             </div>
28 28
            </td>
......
44 44
                                          <!-- <tr><td colspan="2" align="right" id="scalebar"/> </tr> -->
45 45
                                          <tr> 
46 46
                                           <td colspan="2" align="right" style="font-size:8pt;"> 
47
                                             <a style="text-decoration:none;" href="../../../../spatial/kml.jsp">
47
                                             <a style="text-decoration:none;" href="/esa/spatial/kml.jsp">
48 48
                                               <br/> 
49 49
                                               Download Google Earth KML
50
                                               <img border="0" src="../../../../style/images/kml.gif">
50
                                               <img border="0" src="/esa/style/images/kml.gif">
51 51
                                             </a>
52 52
                                           </td>
53 53
                                          </tr> 
lib/style/skins/esa/spatial/context.xml
19 19
    <Layer queryable="0" hidden="0">
20 20
      <Server service="OGC:WMS" version="1.1.1"
21 21
      title="Countries">
22
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
22
        <OnlineResource xlink:type="simple" xlink:href="/esa/wms" />
23 23
      </Server>
24 24
      <Name>metacat:world_borders</Name>
25 25
      <Title>Countries</Title>
......
66 66
    <Layer queryable="0" hidden="0">
67 67
      <Server service="OGC:WMS" version="1.1.1"
68 68
      title="DatasetBounds">
69
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
69
        <OnlineResource xlink:type="simple" xlink:href="/esa/wms" />
70 70
      </Server>
71 71
      <Name>metacat:data_bounds</Name>
72 72
      <Title>Dataset Bounds</Title>
......
80 80
    <Layer queryable="0" hidden="0">
81 81
      <Server service="OGC:WMS" version="1.1.1"
82 82
      title="DatasetPoints">
83
        <OnlineResource xlink:type="simple" xlink:href="../../../../wms" />
83
        <OnlineResource xlink:type="simple" xlink:href="/esa/wms" />
84 84
      </Server>
85 85
      <Name>metacat:data_points</Name>
86 86
      <Title>Dataset Points</Title>
lib/style/skins/esa/spatial/config.xml
37 37
        </MapPane>
38 38
        <AoiBoxWZ id="aoiBox2">
39 39
          <htmlTagId>mainMapPane</htmlTagId>
40
          <stylesheet>../../../../spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
40
          <stylesheet>/esa/spatial/mapbuilder/lib/widget/GmlRenderer.xsl</stylesheet>
41 41
          <lineColor>#FF0000</lineColor>
42 42
          <lineWidth>1</lineWidth>
43 43
          <crossSize>15</crossSize>
......
171 171
      <enabledSrc>/images/QueryEnable.png</enabledSrc>
172 172
      <disabledSrc>/images/QueryDisable.png</disabledSrc>
173 173
      <tooltip xml:lang="en">select multiple datasets</tooltip>
174
      <metacat>../../../../metacat</metacat>
174
      <metacat>/esa/metacat</metacat>
175 175
      <skin>esa</skin>
176 176
      <pixel_tolerance>5</pixel_tolerance>
177 177
    </AoiMetacatQuery>
178 178
  </widgets>
179
  <skinDir>../../../../spatial/mapbuilder/lib/skin/default</skinDir>
180
  <proxyUrl>../../../proxy.jsp</proxyUrl>
179
  <skinDir>/esa/spatial/mapbuilder/lib/skin/default</skinDir>
180
  <proxyUrl>/esa/proxy.jsp</proxyUrl>
181 181
</MapbuilderConfig>
182 182

  

Also available in: Unified diff