Project

General

Profile

1
<!doctype html public "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<html>
3
<head>
4
<title>
5
<a href='http://mapbuilder.sourceforge.net'>Community Map Builder</a> 27 Apr 2008 Overview
6
</title>
7
<link rel ="stylesheet" type="text/css" href="stylesheet.css" title="Style">
8
<script>
9
function asd() {
10
	
11
		parent.document.title="GmlRendererBase.js Overview";
12
	
13
}
14
</script>
15
</head>
16
<body bgcolor="white" onload="asd();">
17

    
18
<!-- ========== START OF NAVBAR ========== -->
19
<a name="navbar_top"><!-- --></a>
20
<table border="0" width="100%" cellpadding="1" cellspacing="0">
21
<tr>
22
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
23
<a name="navbar_top_firstrow"><!-- --></a>
24
<table border="0" cellpadding="0" cellspacing="3">
25
  <tr align="center" valign="top">
26
  
27
  
28
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
29
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
30
  
31

    
32
  <td bgcolor="#FFFFFF" class="NavBarCell1"> 	<font class="NavBarFont1">Class</font>&nbsp;</td>
33
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
34
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
35
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
36
  </tr>
37
</table>
38
</td>
39
<td bgcolor="#EEEEFF" align="right" valign="top">
40
<em>
41
<b><a href='http://mapbuilder.sourceforge.net'>Community Map Builder</a> 27 Apr 2008</b></em>
42
</td>
43
</tr>
44

    
45
<tr>
46
<td bgcolor="white" class="NavBarCell2"><font size="-2">
47
&nbsp;PREV&nbsp;
48
&nbsp;NEXT</font></td>
49
<td bgcolor="white" class="NavBarCell2"><font size="-2">
50
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
51
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
52
&nbsp;&nbsp;
53
<script>
54
  <!--
55
  if(window==top) {
56
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
57
  }
58
  //-->
59
</script>
60
<noscript>
61
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
62
</noscript>
63
</font></td>
64
</tr>
65
</table>
66
<!-- =========== END OF NAVBAR =========== -->
67

    
68
<hr>
69
<center>
70
	
71
	   <h2>GmlRendererBase.js</h2>
72
	
73
</center>
74

    
75
	
76

    
77

    
78
<h4>Summary</h4>
79
<p>
80
	
81
		No overview generated for 'GmlRendererBase.js'<BR/><BR/>
82
	
83
</p>
84

    
85
<hr>
86

    
87

    
88
    <table border="1" cellpadding="3" cellspacing="0" width="100%">
89
    <tr bgcolor="#CCCCFF" class="TableHeadingColor">
90
    <td colspan=2><font size="+2">
91
    
92
        <b>Class Summary</b>
93
    
94
    </font></td>
95
    </tr>
96
    
97
    <tr bgcolor="white" class="TableRowColor">
98
    <td width="15%"><b><a href="GmlRendererBase.html">GmlRendererBase</a></b></td>
99
    <td>&nbsp;</td>
100
    </tr>
101
    
102
    </table>
103
    <hr/> 
104

    
105

    
106
<!-- ========== METHOD SUMMARY =========== -->
107

    
108
<!-- ========== END METHOD SUMMARY =========== -->
109

    
110

    
111
        <pre class="sourceview"><span class="comment">/*
112
Author:       Andreas Hocevar andreas.hocevarATgmail.com
113
License:      LGPL as per: http://www.gnu.org/copyleft/lesser.html
114

    
115
$Id: GmlRendererBase.js 3887 2008-02-27 18:18:53Z ahocevar $
116
*/</span>
117
<span class="comment">
118
// Ensure this object's dependancies are loaded.</span>
119
mapbuilder.loadScript(baseDir+<span class="literal">"/widget/WidgetBase.js"</span>);
120

    
121
<span class="comment">/**
122
 * Render GML into HTML.
123
 * this.targetModel references the context model for the map
124
 * where the content of this widget should be rendered to.
125
 * If the model doc is not wfs compliant, a stylesheet
126
 * property has to be set for this widget. The xsl file
127
 * referenced in this property transforms the model doc to
128
 * a wfs FeatureCollection.
129
 * <span class="attrib">@constructor</span>
130
 * <span class="attrib">@base</span> WidgetBase
131
 * <span class="attrib">@param</span> widgetNode  The widget's XML object node from the configuration document.
132
 * <span class="attrib">@param</span> model       The model object that this widget belongs to.
133
 */</span>
134
<span class="reserved">function</span> GmlRendererBase(widgetNode, model) {
135
  WidgetBase.apply(<span class="reserved">this</span>,new Array(widgetNode, model));
136
<span class="comment">  
137
  // set the feature srs.</span>
138
  <span class="comment">/** SRS of the features that this widget will render */</span>
139
  <span class="reserved">this</span>.featureSRS = <span class="reserved">this</span>.getProperty(<span class="literal">'mb:featureSRS'</span>);
140
<span class="comment">  
141
  // set the hover cursor.</span>
142
  <span class="comment">/** css cursor when hovering over features */</span>
143
  <span class="reserved">this</span>.hoverCursorNode = <span class="reserved">this</span>.getProperty(<span class="literal">'mb:hoverCursor'</span>, <span class="literal">'pointer'</span>);
144

    
145
  <span class="comment">/** model holding the sld for feature styles of this widget */</span>
146
  <span class="reserved">this</span>.sldModelNode = widgetNode.selectSingleNode(<span class="literal">'mb:sldModel'</span>);
147
<span class="comment">
148
  // set the default style.</span>
149
  <span class="comment">/** sld node within the sld model that is used for default styling */</span>
150
  <span class="reserved">this</span>.defaultStyleName = <span class="reserved">this</span>.getProperty(<span class="literal">'mb:defaultStyleName'</span>, <span class="literal">'default'</span>);
151
<span class="comment">  
152
  // set the select style</span>
153
  <span class="comment">/** sld node within the sld model that is used when a feature is hovered */</span>
154
  <span class="reserved">this</span>.selectStyleName = <span class="reserved">this</span>.getProperty(<span class="literal">'mb:selectStyleName'</span>, <span class="literal">'selected'</span>);
155

    
156
  <span class="comment">/**
157
   * config object holding all configurations that might be different
158
   * among source models (if a MergeModel with multiple GmlRendererConfig
159
   * widgets is used).
160
   */</span>
161
  <span class="reserved">this</span>.config = new Object({
162
        model: model,
163
        hoverCursor: <span class="reserved">this</span>.hoverCursor,
164
        sldModelNode: <span class="reserved">this</span>.sldModelNode,
165
        defaultStyleName: <span class="reserved">this</span>.defaultStyleName,
166
        selectStyleName: <span class="reserved">this</span>.selectStyleName,
167
        featureSRS: <span class="reserved">this</span>.featureSRS
168
  });
169
}
170
</pre>
171
	<hr>
172

    
173

    
174

    
175
<!-- ========== START OF NAVBAR ========== -->
176
<a name="navbar_top"><!-- --></a>
177
<table border="0" width="100%" cellpadding="1" cellspacing="0">
178
<tr>
179
<td colspan=2 bgcolor="#EEEEFF" class="NavBarCell1">
180
<a name="navbar_top_firstrow"><!-- --></a>
181
<table border="0" cellpadding="0" cellspacing="3">
182
  <tr align="center" valign="top">
183
  
184
  
185
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-summary.html"><font class="NavBarFont1"><b>Overview</b></font></a>&nbsp;</td>
186
  <td bgcolor="#FFFFFF" class="NavBarCell1Rev">	&nbsp;<font class="NavBarFont1Rev"><b>File</b></font>&nbsp;</td>
187
  
188

    
189
  <td bgcolor="#FFFFFF" class="NavBarCell1"> <font class="NavBarFont1">Class</font>&nbsp;</td>
190
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="overview-tree.html"><font class="NavBarFont1"><b>Tree</b></font></a>&nbsp;</td>
191
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="index-all.html"--><font class="NavBarFont1"><b>Index</b></font></a>&nbsp;</td>
192
  <td bgcolor="#EEEEFF" class="NavBarCell1">    <a href="help-doc.html"><font class="NavBarFont1"><b>Help</b></font></a>&nbsp;</td>
193
  </tr>
194
</table>
195
</td>
196
<td bgcolor="#EEEEFF" align="right" valign="top"><em>
197
<b><a href='http://mapbuilder.sourceforge.net'>Community Map Builder</a> 27 Apr 2008</b></em>
198
</td>
199
</tr>
200

    
201
<tr>
202
<td bgcolor="white" class="NavBarCell2"><font size="-2">
203
&nbsp;PREV&nbsp;
204
&nbsp;NEXT</font></td>
205
<td bgcolor="white" class="NavBarCell2"><font size="-2">
206
  <a href="index.html" target="_top"><b>FRAMES</b></a>  &nbsp;
207
&nbsp;<a href="overview-summary.html" target="_top"><b>NO FRAMES</b></a>
208
&nbsp;&nbsp;
209
<script>
210
  <!--
211
  if(window==top) {
212
    document.writeln('<A HREF="allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
213
  }
214
  //-->
215
</script>
216
<noscript>
217
<a href="allclasses-noframe.html" target=""><b>All Classes</b></a>
218
</noscript>
219
</font></td>
220
</tr>
221
</table>
222
<!-- =========== END OF NAVBAR =========== -->
223

    
224
<hr>
225
<font size="-1">
226

    
227
</font>
228
<div class="jsdoc_ctime">Documentation generated by <a href="http://jsdoc.sourceforge.net/" target="_parent">JSDoc</a> on Sun Apr 27 20:30:54 2008</div>
229
</body>
230
</html>
(245-245/316)