mapfish-print icon indicating copy to clipboard operation
mapfish-print copied to clipboard

Add "Shared Objects" in configuration

Open jesseeichar opened this issue 10 years ago • 1 comments

Add a section in the main configuration and in templates where "shared objects" can be defined.

The use-case here is to define several layers in the shared objects configuration section and when a client makes a request the client can simply choose the layers by id (rather than define the full layer definition).

An implementation proposal is as follows:

Add to both Configuration and Template a shared section.

In the Values object's populateFromAttributes method, when the attribute value (resolved from either the json or default yaml) is wrapped with {{key}} then use the "key" to look up a shared object first in the template shared objects and then in the Configuration shared objects. If no shared object is found then leave the unresolved.

jesseeichar avatar Apr 17 '15 09:04 jesseeichar

Can it be a place where we can configure the !configureHttpRequests for all the template ?

sbrunner avatar Apr 17 '15 09:04 sbrunner