Extend layerSpecificExport for APIs #2053
Open
+142
−43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2040.
The PR includes several improvements to the layerSpecificExport handling to make the configuration more flexible and adaptable to more different types of APIs. It does not include authentication in any way, but that would be a useful next addition.
exportedFileName
andbutton
per layer or specific URLurl
) can be set as defaults per layer, or overriden for specific export URLs.urlParameters
attribute
property:{ "attribute": "objekt_id", "separator": ";"}
. The separator character can be customized but uses semicolon by default.{{no_value}}
to add the parameter without the equals sign or value.requestMethod
(POST_JSON
|OPEN
|GET
) anddisplayExportResponse
(true
|false
) addedPOST_JSON
is the default option and posts JSON the usual way as the layerSpecificExport works.OPEN
opens the URL in a new window.GET
makes a GET requesturlParameters
specified (but notattributesToSendToExport
of course)displayExportResponse
is set totrue
(for the layer or the specific url) the request's response will be displayed in the infowindow. Supports images and text (if from the same domain or otherwise allowed by CORS restrictions). Defaults to false.article
because it looks nice for opening reports etc.