| 106 | | var doc = request.responseXML; |
|---|
| 107 | | |
|---|
| 108 | | if (!doc || request.fileType!="XML") { |
|---|
| 109 | | doc = OpenLayers.parseXMLString(request.responseText); |
|---|
| 110 | | } |
|---|
| 111 | | if (this.layer.vectorMode) { |
|---|
| 112 | | var gml = new OpenLayers.Format.GML({extractAttributes: this.layer.options.extractAttributes}); |
|---|
| 113 | | this.layer.addFeatures(gml.read(doc)); |
|---|
| 114 | | } else { |
|---|
| 115 | | var resultFeatures = OpenLayers.Ajax.getElementsByTagNameNS(doc, "http://www.opengis.net/gml","gml", "featureMember"); |
|---|
| 116 | | this.addResults(resultFeatures); |
|---|
| | 106 | if (this.features) { |
|---|
| | 107 | var doc = request.responseXML; |
|---|
| | 108 | |
|---|
| | 109 | if (!doc || request.fileType!="XML") { |
|---|
| | 110 | doc = OpenLayers.parseXMLString(request.responseText); |
|---|
| | 111 | } |
|---|
| | 112 | if (this.layer.vectorMode) { |
|---|
| | 113 | var gml = new OpenLayers.Format.GML({ |
|---|
| | 114 | 'extractAttributes': this.layer.options.extractAttributes |
|---|
| | 115 | }); |
|---|
| | 116 | this.layer.addFeatures(gml.read(doc)); |
|---|
| | 117 | } else { |
|---|
| | 118 | var resultFeatures = OpenLayers.Ajax.getElementsByTagNameNS( |
|---|
| | 119 | doc, "http://www.opengis.net/gml", "gml", "featureMember" |
|---|
| | 120 | ); |
|---|
| | 121 | this.addResults(resultFeatures); |
|---|
| | 122 | } |
|---|