Commit a346728
authored
Allow
AddTileConfig is a shorthand way of adding tile configs without a renderd.conf; if you use mod_tile with tirex, then you will typically not have a renderd.conf and hence rely on AddTileConfig.
AddTileConfig lacks the richness of renderd.conf configuration; you cannot, for example, configure differing max_zooms or file extensions or mime types.
To partly fix this problem, AddTileMimeConfig was introduced which takes one extra argument - misleadingly, not the MIME type, but the file extension, as a third parameter.
This approach is not scalable and difficult to use because of the positional parameters.
This pull request introduces optional key-value pairs for the AddTileConfig directive. You can now write
AddTileConfig /tile tile mimetype=image/jpeg extension=jpg maxzoom=22
to configure your tile layer. Currently, "mimetype", "maxzoom", "minzoom", and "extension" are supported.
This is totally backwards compatible, as old-style AddTileConfig directives will still work like they did before.
The AddTileMimeConfig directive still works but it could be deprecated in favour of this new AddTileConfig syntax.
Co-authored-by: Frederik Ramm <ramm@geofabrik.de>key=value parameters for AddTileConfig (#346)1 parent c7ffa83 commit a346728
1 file changed
Lines changed: 43 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
2095 | 2098 | | |
2096 | 2099 | | |
2097 | 2100 | | |
| |||
2103 | 2106 | | |
2104 | 2107 | | |
2105 | 2108 | | |
2106 | | - | |
| 2109 | + | |
2107 | 2110 | | |
2108 | | - | |
2109 | | - | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2110 | 2146 | | |
| 2147 | + | |
| 2148 | + | |
2111 | 2149 | | |
2112 | 2150 | | |
2113 | 2151 | | |
| |||
2851 | 2889 | | |
2852 | 2890 | | |
2853 | 2891 | | |
2854 | | - | |
| 2892 | + | |
2855 | 2893 | | |
2856 | 2894 | | |
2857 | 2895 | | |
2858 | 2896 | | |
2859 | | - | |
| 2897 | + | |
2860 | 2898 | | |
2861 | 2899 | | |
2862 | 2900 | | |
| |||
0 commit comments