@@ -60,7 +60,7 @@ <h2>Blah</h2>
60
60
< div id ="map-container-1 " class ="map ">
61
61
< div class ="layer-buttons ">
62
62
< div class ="row layer-button-row "> < a href ="javascript:giscloud_sewer_line.setMap(map1); " class ="btn success "> Sewer Line On</ a > < a href ="javascript:giscloud_sewer_line.setMap(null); " class ="btn danger "> Sewer Line Off</ a > </ div >
63
- < div class ="row layer-button-row " style ="float: right; "> < a href ="javascript:giscloud_sewer_man_hole .setMap(map1); " class ="btn success "> Man Hole On</ a > < a href ="javascript:giscloud_sewer_man_hole .setMap(null); " class ="btn danger "> Man Hole Off</ a > </ div >
63
+ < div class ="row layer-button-row " style ="float: right; "> < a href ="javascript:giscloud_man_hole .setMap(map1); " class ="btn success "> Man Hole On</ a > < a href ="javascript:giscloud_man_hole .setMap(null); " class ="btn danger "> Man Hole Off</ a > </ div >
64
64
</ div >
65
65
</ div >
66
66
</ div >
@@ -130,11 +130,11 @@ <h2>Blah</h2>
130
130
< script src ="../../dist/gvector.js " type ="text/javascript "> </ script >
131
131
< script type ="text/javascript ">
132
132
var map1 ;
133
- var giscloud ;
133
+ var giscloud_sewer_line , giscloud_man_hole ;
134
134
$ ( document ) . ready ( function ( ) {
135
135
136
136
map1 = new google . maps . Map ( document . getElementById ( "map-container-1" ) , {
137
- center : new google . maps . LatLng ( 35.05642206622684 , - 80.66948943389895 ) ,
137
+ center : new google . maps . LatLng ( 34.95162940282452 , - 80.76188617004397 ) ,
138
138
zoom : 16 ,
139
139
mapTypeId : google . maps . MapTypeId . ROADMAP ,
140
140
noClear : true
@@ -143,21 +143,53 @@ <h2>Blah</h2>
143
143
giscloud_sewer_line = new gvector . GISCloud ( {
144
144
mapID : 27322 ,
145
145
layerID : 117755 ,
146
+ scaleRange : [ 15 , 20 ] ,
147
+ symbology : {
148
+ type : "range" ,
149
+ property : "pipe_dia" ,
150
+ ranges : [
151
+ {
152
+ range : [ 0 , 8 ] ,
153
+ vectorOptions : {
154
+ strokeWeight : 4 ,
155
+ strokeColor : "#46461f" ,
156
+ strokeOpacity : 0.8
157
+ }
158
+ } ,
159
+ {
160
+ range : [ 8.00001 , 47.9999 ] ,
161
+ vectorOptions : {
162
+ strokeWeight : 7 ,
163
+ strokeColor : "#ff7800" ,
164
+ strokeOpacity : 0.8
165
+ }
166
+ } ,
167
+ {
168
+ range : [ 48 , 100 ] ,
169
+ vectorOptions : {
170
+ strokeWeight : 10 ,
171
+ strokeColor : "#000000" ,
172
+ strokeOpacity : 1
173
+ }
174
+ }
175
+ ]
176
+ } ,
177
+ infoWindowTemplate : '<div class="iw-content"><h3>Sewer Line</h3><table class="condensed-table zebra-striped bordered-table"><tr><th>Diameter</th><td>{pipe_dia} in.</td></tr><tr><th>Material</th><td>{pipe_mat}</td></tr><tr><th>Flows To</th><td>{wwtp} WWTP</td></tr></table></div>' ,
178
+ singleInfoWindow : true
179
+ } ) ;
180
+
181
+ giscloud_man_hole = new gvector . GISCloud ( {
182
+ mapID : 27322 ,
183
+ layerID : 117756 ,
184
+ scaleRange : [ 16 , 20 ] ,
146
185
symbology : {
147
186
type : "single" ,
148
187
vectorOptions : {
149
- strokeWeight : 4 ,
150
- strokeColor : "#46461f" ,
151
- strokeOpacity : 0.8
188
+ icon : new google . maps . MarkerImage ( "../../docs-demo/img/markers/manhole.png" , new google . maps . Size ( 16 , 16 ) , new google . maps . Point ( 0 , 0 ) , new google . maps . Point ( 8 , 8 ) )
152
189
}
153
190
} ,
154
- infoWindowTemplate : function ( properties ) {
155
- var html = '' ;
156
- for ( var prop in properties ) {
157
- html += '<strong>' + prop + '</strong>: ' + properties [ prop ] + '<br />' ;
158
- }
159
- return html ;
160
- }
191
+ infoWindowTemplate : '<div class="iw-content"><h3>Man Hole</h3><table class="condensed-table"><tr><th>Diameter</th><td>{mh_dia} ft.</td></tr><tr><th>Depth</th><td>{mh_depth} ft.</td></tr><tr><th>Address</th><td>{street_add}</td></tr><tr><th>Flows To</th><td>{wwtp} WWTP</td></tr></table></div>' ,
192
+ singleInfoWindow : true
161
193
} ) ;
162
194
163
195
} ) ;
0 commit comments