#9191 closed enhancement (fixed)
MapCSS: Add option to include colour preferences of external styles
Reported by: | skyper | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.01 |
Component: | Core | Version: | |
Keywords: | style color preferences MapCSS | Cc: | imagic |
Description
It is possible to nicely define the colours of the internal style under preferences.
What I ask for is an option to also include external styles under the color tab within display preferences.
Attachments (0)
Change History (11)
comment:1 follow-up: 3 Changed 10 years ago by
comment:2 Changed 10 years ago by
Cc: | imagic added |
---|
comment:3 follow-up: 4 Changed 10 years ago by
Replying to AlfonZ:
Colours specified in external xml-based styles are showing up in Display preferences.
Does this also work with wiki:Styles/Lane_and_Road_Attributes for example ?
comment:4 Changed 10 years ago by
Replying to skyper:
Replying to AlfonZ:
Colours specified in external xml-based styles are showing up in Display preferences.
Does this also work with wiki:Styles/Lane_and_Road_Attributes for example ?
This style is based on MapCSS and not on XML, therefore this can't work.
But I certainly do miss the possibility to make some properties configurable in MapCSS. If you have a look at the beginning of the style, you'll see a section called "Global settings and initialization" with various settings. Especially the opacity settings and the setting for left-hand/right-hand traffic have to be easy configurable. Currently the user has to save a copy of the style and edit it manually.
I suggest using comments to make MapCSS properties configurable, e.g. something like this:
boolean someProperty=false; /* configurable: name="Name of property", description="Description of property", values="true","false" */
The comment has to start right after the property in the same line.
comment:5 Changed 9 years ago by
Keywords: | MapCSS added |
---|---|
Summary: | option to include colour preferences of external styles → MapCSS: Add option to include colour preferences of external styles |
comment:7 Changed 9 years ago by
Milestone: | → 14.01 |
---|
comment:9 Changed 9 years ago by
*[foo=bar] { color: supercolor#123456; /* supercolor is the preference name */ }
comment:10 follow-up: 11 Changed 9 years ago by
comment:11 Changed 9 years ago by
Please do not silently use a closed ticket of a reached milestone. I created #9633.
Colours specified in external xml-based styles are showing up in Display preferences.
Adding the style
adds the colour
testcolour1
.Looking at MapCSS specification, I don't see a way to add a custom name for a hex value.