@@ -49,6 +49,7 @@ class PagedCombobox extends React.Component {
4949 nextPageIcon : PropTypes . string ,
5050 prevPageIcon : PropTypes . string ,
5151 selectedValue : PropTypes . string ,
52+ srsName : PropTypes . string ,
5253 textField : PropTypes . string ,
5354 tooltip : PropTypes . object ,
5455 valueField : PropTypes . string
@@ -79,6 +80,7 @@ class PagedCombobox extends React.Component {
7980 onChange : ( ) => { } ,
8081 onChangeDrawingStatus : ( ) => { } ,
8182 onSelect : ( ) => { } ,
83+ srsName : "EPSG:4326" ,
8284 textField : "label" ,
8385 tooltip : {
8486 customizedTooltip : undefined ,
@@ -155,7 +157,7 @@ class PagedCombobox extends React.Component {
155157 const feature = head ( this . props . features . filter ( f => f . properties [ this . props . valueField ] . toLowerCase ( ) === v [ this . props . valueField ] . toLowerCase ( ) ) ) ;
156158 this . props . onSelect ( v , feature ) ;
157159 if ( feature ) {
158- this . props . onChangeDrawingStatus ( 'drawOrEdit' , feature . geometry . type , "queryform" , [ feature ] , { editEnabled : false , stopAfterDrawing : true , updateSpatialField : true } ) ;
160+ this . props . onChangeDrawingStatus ( 'drawOrEdit' , feature . geometry . type , "queryform" , [ feature ] , { editEnabled : false , stopAfterDrawing : true , updateSpatialField : true , featureProjection : this . props . srsName } ) ;
159161 }
160162 } }
161163 onToggle = { ( v ) => {
@@ -165,7 +167,7 @@ class PagedCombobox extends React.Component {
165167 this . props . onToggle ( v , feature , this . props . pagination . currentPage ) ;
166168 // if when closing the menu it finds a feature with the text inserted, then update the spatial field
167169 if ( feature && ! v ) {
168- this . props . onChangeDrawingStatus ( 'drawOrEdit' , feature . geometry . type , "queryform" , [ feature ] , { editEnabled : false , stopAfterDrawing : true , updateSpatialField : true } ) ;
170+ this . props . onChangeDrawingStatus ( 'drawOrEdit' , feature . geometry . type , "queryform" , [ feature ] , { editEnabled : false , stopAfterDrawing : true , updateSpatialField : true , featureProjection : this . props . srsName } ) ;
169171 }
170172 // if when closing the menu it does not find a feature, then clean all
171173 // it conflicts with change page which trigger the on toggle twice, one for closing and one for opening
0 commit comments