File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
lib/OpenLayers/Format/WFST Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ OpenLayers.Format.WFST.v1_0_0 = OpenLayers.Class(
139
139
var prefix = options . featurePrefix ;
140
140
var node = this . createElementNSPlus ( "wfs:Query" , {
141
141
attributes : {
142
- typeName : ( prefix ? prefix + ":" : "" ) +
142
+ typeName : ( options . featureNS ? prefix + ":" : "" ) +
143
143
options . featureType
144
144
}
145
145
} ) ;
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ OpenLayers.Format.WFST.v2_0_0 = OpenLayers.Class(
170
170
var prefix = options . featurePrefix ;
171
171
var node = this . createElementNSPlus ( "wfs:Query" , {
172
172
attributes : {
173
- typeNames : ( prefix ? prefix + ":" : "" ) +
173
+ typeNames : ( options . featureNS ? prefix + ":" : "" ) +
174
174
options . featureType ,
175
175
srsName : options . srsName
176
176
}
Original file line number Diff line number Diff line change 75
75
featureType : "states" ,
76
76
featurePrefix : "topp"
77
77
} ) ;
78
- var exp = "topp: states" ;
78
+ var exp = "states" ;
79
79
var got = format . writeNode ( "wfs:Query" ) . getAttribute ( "typeName" ) ;
80
80
t . eq ( got , exp , "Query without featureNS but with featurePrefix queries for the correct featureType" ) ;
81
81
}
Original file line number Diff line number Diff line change 278
278
featureType : "states" ,
279
279
featurePrefix : "topp"
280
280
} ) ;
281
- var exp = "topp: states" ;
281
+ var exp = "states" ;
282
282
var got = format . writeNode ( "wfs:Query" ) . getAttribute ( "typeNames" ) ;
283
283
t . eq ( got , exp , "Query without featureNS but with featurePrefix queries for the correct featureType" ) ;
284
284
}
You can’t perform that action at this time.
0 commit comments