origo icon indicating copy to clipboard operation
origo copied to clipboard

Extension of layerSpecificExport to allow more config options

Open MattiasSp opened this issue 5 months ago • 2 comments

Description The layerSpecificExport options for the infoWindow are great, but could be more flexible with the request specifications.

Adding the option to include URL-parameters and choose between making a POST- or a GET request would go a long way to making this feature more general and make it possible to export selected features to many different types of APIs.

Proposed solution Adding a bunch of config parameters to the layerSpecificExport which control how the requests are made.

Alternatives considered Adding more hardcoded export modes other than simpleExport and layerSpecificExport would make the configuration simpler as each mode could be better tailored to a specific type of API. But I prefer the proposed solution because hard coded modes would make the code more bloated and repeated, and would also require the code to be updated to match any changes to the APIs.

MattiasSp avatar Sep 06 '24 08:09 MattiasSp