Skip to content

Commit 4bf0843

Browse files
committed
Document bbox/center in getResultGeometry
1 parent 89541ce commit 4bf0843

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/topics/Search.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,11 @@ The format of `ProviderDefinition` is
5454

5555
const crs = "EPSG:XXXX";
5656
const hidemarker = <boolean>; // Whether to suppress displaying a search marker on top of the search geometry
57-
callback({geometry: geometry, crs: crs, hidemarker: hidemarker});
57+
const bbox = [xmin, xmax, ymin, ymax]; // Optional, if null, the bbox of the resultItem will be used
58+
const center = [x, y]; // Optional, if null, the center of the resultItem will be used
59+
callback({geometry: geometry, crs: crs, hidemarker: hidemarker, bbox: bbox, center: center});
5860
// or
59-
callback({feature: geojson_feature, crs: crs, hidemarker: hidemarker});
61+
callback({feature: geojson_feature, crs: crs, hidemarker: hidemarker, bbox: bbox, center: center});
6062
},
6163
handlesGeomFilter: <boolean>, // Hint whether provider will completely filter the results on provider side and that no client-side filtering is necessary
6264
getLayerDefinition: function(resultItem, callback, axios) => {

0 commit comments

Comments
 (0)