Closed rgwozdz closed 4 months ago
Latest commit: c61b9adcf2da150d74e7c812fd25755560bb732d
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
File Path | Statements | Branches | Functions | Lines |
---|---|---|---|---|
packages/featureserver/src/helpers/table-layer-metadata.js | 98.7 |
89.79 |
100 |
98.68 |
The GeoServices output now delivers layer metadata with the
supportedQueryFormats
field assigned a value of'JSON,geojson,PBF'
.When
PBF
is one of thesupportedQueryFormats
listed in layer metadata, many ArcGIS Clients will preferentially makequery
request withpbf
as the desired format. This is great because PBF is more compact, but some developers may want to force the use of JSON format by said clients (e.g., it might help in debugging). This PR allows provider developers to override the default value ofsupportedQueryFormats
, by adding their own key-value entry to themetadata
object found on the geojson generated by a provider. For exampleThis pattern would ensure that the layer-metadata would only list 'JSON' as the supported query format. So clients would then request in format JSON as opposed to PBF.