You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#11162: Improve MS actions to automatically zoom to filtered features (#11163)
* #11162: Improve MS actions to automatically zoom to filtered features
- enhance zooming functionality if the queried layers is just one by auto zooming
- automate that zoom process without the need to include any coordinates
- add unit tests
* resolve review comments:
- handle when no center, marker, bbox or zoom are provided as query params the zoom to feature bbox must not be used
- add unit tests
- add jsdocs
* resolve FE test failure in QueryParamsUtils
it('test featureInfoClick with filterNameList, overrideParams, ignoreVisibilityLimits flag [search service case], bbox of feature and queryParamZoomOption',()=>{
@@ -195,16 +196,22 @@ export function updateCenterToMarker(status) {
195
196
* @param {object} [overrideParams={}] a map based on name as key and objec as value for overriding request params
196
197
* @param {string} [itemId=null] id of the item needed for filtering results
197
198
* @param {string} [ignoreVisibilityLimits=false] a boolean flag for ignoring layer visibility limits restrictions to apply GFI
199
+
* @param {number[]} [bbox=[]] bbox of the identified fearure in the form of [minx, miny, maxx, maxy]
200
+
* @param {object} queryParamZoomOption the override zoom option
201
+
* @param {number} queryParamZoomOption.overrideZoomLvl the override zoom level value if exist to make map zoom within this value
202
+
* @param {boolean} queryParamZoomOption.isCoordsProvided a flag to skip zooming to identified feature to use map zoom level if center/marker or bbox provided
Copy file name to clipboardExpand all lines: web/client/actions/search.js
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -45,13 +45,17 @@ export function changeFormat(format) {
45
45
* @prop {object} options {layer, cql_filter}
46
46
* @prop {string} options.cql_filter optional filter to apply for both requests
47
47
* @prop {string} options.layer name of the layer with workspace
48
+
* @param {object} queryParamZoomOption the override zoom option
49
+
* @param {number} queryParamZoomOption.overrideZoomLvl the override zoom level value if exist to make map zoom within this value
50
+
* @param {boolean} queryParamZoomOption.isCoordsProvided a flag to skip zooming to identified feature to use map zoom level if center/marker or bbox provided
* @prop {string} options.cql_filter optional filter to apply for both requests
65
69
* @prop {string} options.layer name of the layer with workspace
70
+
* @param {object} queryParamZoomOption the override zoom option
71
+
* @param {number} queryParamZoomOption.overrideZoomLvl the override zoom level value if exist to make map zoom within this value
72
+
* @param {boolean} queryParamZoomOption.isCoordsProvided a flag to skip zooming to identified feature to use map zoom level if center/marker or bbox provided
0 commit comments