Modify

Opened 10 years ago

Closed 10 years ago

Last modified 8 years ago

#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)

elemstyles7428_more_streetnames.mapcss (83.4 KB ) - added by Klumbumbus 10 years ago.
names.png (17.3 KB ) - added by Klumbumbus 10 years ago.

Download all attachments as: .zip

Change History (40)

comment:1 by bastiK, 10 years ago

Rough ideas:

  • repeat-image to draw cliffs as they appear in Mapnik (e.g. here)
  • housenumber rendering (#9357)
  • use zoom levels

comment:2 by bastiK, 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 mkoniecz, 10 years ago

#9319 Lines with higher layer value should be drawn on top of lines of lower layer value

comment:4 by naoliv, 10 years ago

Could leisure=swimming_pool have a blueish color, instead the current green color?

comment:5 by skyper, 10 years ago

Cc: skyper added

comment:6 by Klumbumbus, 10 years ago

Don't display the building icon on nodes for building=no Example

comment:7 by bastiK, 10 years ago

see #10044 - Bridges and tunnels are rendered in exactly the same way

comment:8 by bastiK, 10 years ago

In 7147/josm:

see #10043 - Don't display the building icon on nodes for building=no

comment:9 by bastiK, 10 years ago

In 7148/josm:

see #10043 - let leisure=swimming_pool have a blueish color, instead the current green color

comment:10 by Don-vip, 10 years ago

Milestone: 14.05

comment:11 by Klumbumbus, 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.

Version 1, edited 10 years ago by Klumbumbus (previous) (next) (diff)

comment:12 by skyper, 10 years ago

How about #9144 ?

comment:13 by skyper, 10 years ago

Support cycleway:left/right=* and use casing. See #10057

comment:14 by mkoniecz, 10 years ago

#9258 display bicycle=yes; foot=designated; highway=path in default paint style

#9385 colour of arrows on oneway paths with bicycle=designated, foot=designated

I suggested "repeat-image to draw cliffs as they appear in Mapnik" as #9427

#9834 barrier=guard_rail is not rendered as barrier

comment:15 by bastiK, 10 years ago

In 7155/josm:

see #10043 - move the area styles of piste:difficulty=* from default layer to "core_piste" layer

comment:16 by bastiK, 10 years ago

In 7156/josm:

fixed #9427 - natural=cliff is not displaying that upper side is on left and lower on the right (see #10043)

comment:17 by bastiK, 10 years ago

In 7157/josm:

fixed #9834 - barrier=guard_rail is not rendered as barrier (see #10043)

comment:18 by Klumbumbus, 10 years ago

see #10064 - realwidth and priority in elemstyle.mapcss

comment:19 by Don-vip, 10 years ago

Cc: simon04 added

Paul, Simon, don't forget to update Help/Styles/MapCSSImplementation when adding new MapCSS functions :)

comment:20 by Klumbumbus, 10 years ago

see #10067 - elemstyle.mapcss: text is displayd twice because of text:auto of fixme

comment:21 by naoliv, 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 Klumbumbus, 10 years ago

Should sport=swimming always have blue colour, also without leisure=swimming_pool?

comment:23 by skyper, 10 years ago

Found another one: #8869.

At least do not render both on the same spot.

comment:24 by bastiK, 10 years ago

In 7199/josm:

switch to correct mini_roundout icon in areas with left-hand traffic (see #10043)

comment:25 by bastiK, 10 years ago

In 7201/josm:

see #10057 - Better support for cycleway

comment:26 by bastiK, 10 years ago

In 7202/josm:

see #10043 - water color for sport=swimming

comment:27 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

comment:28 by bastiK, 10 years ago

In 7386/josm:

see #10043 - Mappaint: print name of street along residential

comment:29 by bastiK, 10 years ago

In 7390/josm:

see #10043 - more prominent label for place=*

in reply to:  28 comment:30 by aceman, 10 years ago

Replying to bastiK:

In 7386/josm:

see #10043 - Mappaint: print name of street along residential

There are also roads of class primary/secondary/tertiary with names inside cities (where they act instead of highway=residential). Should they also be shown? Or only when abutters is set on the ways?

by Klumbumbus, 10 years ago

by Klumbumbus, 10 years ago

Attachment: names.png added

comment:31 by Klumbumbus, 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?


Last edited 10 years ago by Klumbumbus (previous) (diff)

comment:32 by bastiK, 10 years ago

In 7439/josm:

applied #10043 - render street name for more highway types (patch by Klumbumbus)

comment:33 by bastiK, 10 years ago

Yes, it looks nice, thanks Klumbumbus! (please add patch file next time, if possible)

Last edited 10 years ago by bastiK (previous) (diff)

comment:34 by Klumbumbus, 10 years ago

Name display for highway=pedestrian was added in [7457]

For maxspeed nodes see #10301
For zoom levels see #10363

comment:35 by baditaflorin, 8 years ago

Ability to show different colors per user

in reply to:  35 ; comment:36 by naoliv, 8 years ago

Replying to baditaflorin@…:

Ability to show different colors per user

What exactly do you mean/need here?

in reply to:  36 ; comment:37 by skyper, 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 ?

in reply to:  37 comment:38 by Klumbumbus, 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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.