#10043 closed enhancement (fixed)
Improvements to the main map style after switching to MapCSS
Reported by: | bastiK | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.06 |
Component: | Internal mappaint style | Version: | |
Keywords: | Cc: | skyper, simon04 |
Description
After the main mappaint style has been converted to MapCSS (see #9691), we can use the new options to improve it.
Please add your ideas, mapcss styles, patches, etc. below.
Attachments (2)
Change History (40)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
from ticket #9691 by Klumbumbus:
When the migration is done, you could maybe think about replace the default maxspeed icon on nodes (which shows always 60 for every maxspeed value) by a dynamic display of the real maxspeed value. There was already a discussion some years ago in #5859. I think it is better to show the real value instead of always 60. The code which could be integrated in the elemstyle.mapcss could look like this:
node[maxspeed<100]::maxbg { symbol-shape: circle; symbol-size: 18; symbol-fill-color: white; } node[maxspeed<100]::maxfg { symbol-shape: circle; symbol-size: 16; symbol-stroke-color: crimson; symbol-stroke-width: 2; text: "maxspeed"; font-size: 9; text-color: black; text-anchor-horizontal: center; text-anchor-vertical: center; text-offset-x: 0; text-offset-y: 0; } node[maxspeed>=100]::maxbg { symbol-shape: circle; symbol-size: 20; symbol-fill-color: white; } node[maxspeed>=100]::maxfg { symbol-shape: circle; symbol-size: 18; symbol-stroke-color: crimson; symbol-stroke-width: 2; text: "maxspeed"; font-size: 9; text-color: black; text-anchor-horizontal: center; text-anchor-vertical: center; text-offset-x: 0; text-offset-y: 0; }
comment:3 by , 10 years ago
#9319 Lines with higher layer value should be drawn on top of lines of lower layer value
comment:4 by , 10 years ago
Could leisure=swimming_pool
have a blueish color, instead the current green color?
comment:5 by , 10 years ago
Cc: | added |
---|
comment:10 by , 10 years ago
Milestone: | → 14.05 |
---|
comment:11 by , 10 years ago
Move the area styles of piste:difficulty=* from default layer also to "core_piste" layer (like piste way styles).
Then you can easily deactivate these styles from other mappaint styles (e.g. with fill-opacity: 0;) without to fear to break any other area fill color style in the default layer.
comment:14 by , 10 years ago
comment:19 by , 10 years ago
Cc: | added |
---|
Paul, Simon, don't forget to update Help/Styles/MapCSSImplementation when adding new MapCSS functions :)
comment:20 by , 10 years ago
see #10067 - elemstyle.mapcss: text is displayd twice because of text:auto of fixme
comment:21 by , 10 years ago
There is one problem with [7148]: if the area has only leisure=swimming_pool
then it's properly displayed with a blue color.
However, if you also add sport=swimming
, the color gets back to green.
comment:22 by , 10 years ago
Should sport=swimming always have blue colour, also without leisure=swimming_pool?
comment:23 by , 10 years ago
Found another one: #8869.
At least do not render both on the same spot.
comment:27 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:30 by , 10 years ago
by , 10 years ago
Attachment: | elemstyles7428_more_streetnames.mapcss added |
---|
by , 10 years ago
comment:31 by , 10 years ago
I also think that only residential is not the best way. I modified the style so the names for residential, living_street, motorway*, trunk*, primary*, secondary*, tertiary*, unclassified, service and track are shown. All with the halo color of the street. Since motorways and trunks often do not have names, but refs, the ref is shown. I think it looks nice. Try it out yourself.
Here is the modified style: elemstyles7428_more_streetnames.mapcss
What do you think?
comment:33 by , 10 years ago
Yes, it looks nice, thanks Klumbumbus! (please add patch file next time, if possible)
comment:34 by , 10 years ago
follow-up: 37 comment:36 by , 8 years ago
Replying to baditaflorin@…:
Ability to show different colors per user
What exactly do you mean/need here?
follow-up: 38 comment:37 by , 8 years ago
Replying to naoliv:
Replying to baditaflorin@…:
Ability to show different colors per user
What exactly do you mean/need here?
How about an option to manually give a specific search/filter a colour ?
comment:38 by , 8 years ago
Replying to skyper:
Replying to naoliv:
Replying to baditaflorin@…:
Ability to show different colors per user
What exactly do you mean/need here?
How about an option to manually give a specific search/filter a colour ?
Now discussed in #13661
Rough ideas:
repeat-image
to draw cliffs as they appear in Mapnik (e.g. here)