@@ -21,6 +21,24 @@ const {
2121 highlightStyleSelector
2222} = require ( '../mapInfo' ) ;
2323
24+ const QUERY_PARAMS = {
25+ service : 'WMS' ,
26+ version : '1.1.1' ,
27+ request : 'GetFeatureInfo' ,
28+ exceptions : 'application/json' ,
29+ id : 'tiger:poi__7' ,
30+ layers : 'tiger:poi' ,
31+ query_layers : 'tiger:poi' ,
32+ x : 51 ,
33+ y : 51 ,
34+ height : 101 ,
35+ width : 101 ,
36+ srs : 'EPSG:3857' ,
37+ bbox : '-8238713.7375893425,4969819.729231167,-8238472.483218817,4970060.983601692' ,
38+ feature_count : 10 ,
39+ info_format : 'text/plain' ,
40+ ENV : 'locale:it'
41+ } ;
2442const RESPONSE_STATE = {
2543 mapInfo : {
2644 enabled : true ,
@@ -37,24 +55,7 @@ const RESPONSE_STATE = {
3755 responses : [
3856 {
3957 response : 'Results for FeatureType' ,
40- queryParams : {
41- service : 'WMS' ,
42- version : '1.1.1' ,
43- request : 'GetFeatureInfo' ,
44- exceptions : 'application/json' ,
45- id : 'tiger:poi__7' ,
46- layers : 'tiger:poi' ,
47- query_layers : 'tiger:poi' ,
48- x : 51 ,
49- y : 51 ,
50- height : 101 ,
51- width : 101 ,
52- srs : 'EPSG:3857' ,
53- bbox : '-8238713.7375893425,4969819.729231167,-8238472.483218817,4970060.983601692' ,
54- feature_count : 10 ,
55- info_format : 'text/plain' ,
56- ENV : 'locale:it'
57- } ,
58+ queryParams : QUERY_PARAMS ,
5859 layerMetadata : {
5960 title : 'Manhattan (NY) points of interest' ,
6061 viewer : { } ,
@@ -64,24 +65,7 @@ const RESPONSE_STATE = {
6465 ] ,
6566 requests : [
6667 {
67- request : {
68- service : 'WMS' ,
69- version : '1.1.1' ,
70- request : 'GetFeatureInfo' ,
71- exceptions : 'application/json' ,
72- id : 'tiger:poi__7' ,
73- layers : 'tiger:poi' ,
74- query_layers : 'tiger:poi' ,
75- x : 51 ,
76- y : 51 ,
77- height : 101 ,
78- width : 101 ,
79- srs : 'EPSG:3857' ,
80- bbox : '-8238713.7375893425,4969819.729231167,-8238472.483218817,4970060.983601692' ,
81- feature_count : 10 ,
82- info_format : 'text/plain' ,
83- ENV : 'locale:it'
84- } ,
68+ request : QUERY_PARAMS ,
8569 reqId : '4e030000-514a-11e9-90f1-3db233bf30bf'
8670 }
8771 ] ,
0 commit comments