From 4948cebead679cd0795c391c3dec6ff6ce8f5a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Bla=C5=BEek?= Date: Fri, 2 Jun 2017 12:05:23 +0200 Subject: [PATCH] Update resources.md --- docs/resources.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/resources.md b/docs/resources.md index d8e1aeb..5baec57 100644 --- a/docs/resources.md +++ b/docs/resources.md @@ -228,12 +228,17 @@ definition = { Optional String geoidGrid // name of Proj.4's geoid grid file (e.g. `egm96_15.gtx`) Optional Array layers // list of layers names Optional String format // output file format, so far only "geodataJson" is supported (default) - String styleUrl // URL to default geodata style + Optional String styleUrl // URL to default geodata style Int displaySize // Nominal size of tile in pixels. Optional Object introspection // Extended configuration for mapConfig.json served by mapproxy } ``` +`styleUrl` handling is as follows: + * if there is no `styleUrl` element present mapproxy serves its built-in default style via `style.json` file under resources URL; + * or if `styleUrl` element is present and starts with `file:` prefix then contents of this file (either absolute or relative to dataset directory) are server via the same `style.json` file (NB: this is not a file URI); + * otherwise, the URL from `styleUrl` element is reported in the `freelayer.json` as is + Introspection can be used to serve mapConfig where geodata are show with some surface which in turn can have its own introspection configuration.