-
Notifications
You must be signed in to change notification settings - Fork 526
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expose layer-level advanced options (was: Support for layer level feature-caching
option (carto syntax addition))
#705
Comments
What are the steps to reproduce this? |
manually edit your mml adding this to one of your layers: "attributes": {
"cache-features": "true"
} In the case of the foss4g style we needed this for speedups, and after carto added support (so that it would not be ignored) we added it to the style, which continued to work great but broke tilemill until reverted: tilemill-project/foss4g-benchmark-style@ad4f50b |
I have a feeling it's related to the name of the key |
check with @tmcw on the name. I'm fine with anything. |
Use When testing I get this message. Is this expected?
|
yes, that is expected, it will still work but until http://trac.mapnik.org/changeset/3232 you will get a spurious warning from mapnik. |
We should expose these layer-level settings through the UI at some point. |
We have an advanced field for Datasource options now, but it looks like we might need one for the If so, how much is that supported? Could this be the foundation for supporting joins across different types of datasources? For example, could we have a single layer that is fed by a GeoJSON file, a shapefile, and a sqlite database? |
Yes, we need one for Layers too. We also need the ability to turn layers status on and off (there is another ticket for this) and this could be accomplish with an The relationship is currently one to one. A |
Anyone finding this - until this is fixed (until we add a UI to set layer properties) then the only way to accomplish this is to manually edit your "Datasource": {
"file": "...."
},
"properties": {
"cache-features": true
}, |
Note that all options supported at the Layer level (which are the same no matter the datasource) are available and ready to be exposed in the UI: https://github.com/mapnik/mapnik-reference/blob/c4ef3ea7608cd5a2ca806bb55686fd709ed75996/latest/reference.json#L81-L143 |
Carto master recently added the ability to set additional layer properties (mapbox/carto#95). These were added using an
attributes
object off of the layer, but this breaks something in tilemill such that no layers show up in the UI and the mapnik XML is generated without any styles.Also, it would be great if this option (which defaults to disabled in mapnik) could be set/enabled through the TileMill UI somehow because it can be an important performance boost if the machine has enough memory.
The text was updated successfully, but these errors were encountered: