You are not logged in.

#1 2020-10-07 15:30:04

kucai
Moderator
Registered: 2011-11-08
Posts: 316

JOSM: prefering rendition highway bus stop to public transport platfor

Is there a way to show one rendition over the other for the same object?

for example:

highway:= bus_stop
public_transport := platform
bus := yes

I wish that josm would should the highway bus stop  rendering instead of platform. This is because the bus stop rendering is visible regardless of background imagery - bus picture on top of a white shield.

In contrast, public transport platform is rendered dark brown which is basically invisible when there are a lot of trees in background imagery. This, in turn, caused them to be omitted from a bus route since these platforms are overlooked during the route building/creation process.

Appreciate your input.

Last edited by kucai (2020-10-07 15:31:02)

Offline

#2 2020-10-07 18:08:06

Klumbumbus
Member
From: Erzgebirgskreis
Registered: 2014-01-12
Posts: 630
Website

Re: JOSM: prefering rendition highway bus stop to public transport platfor

You can create an own mapcss file with the following content and put that mappaint style in the list of mappaint styles below the internal JOSM mappaint style. That way it will overwrite the order of the internal JOSM mappaint style.

node[highway=bus_stop] {
    icon-image: "presets/transport/bus_small.svg";
}

Offline

#3 2020-10-11 08:39:55

kucai
Moderator
Registered: 2011-11-08
Posts: 316

Re: JOSM: prefering rendition highway bus stop to public transport platfor

Thanks. I got that to work, except I changed the

node[highway=bus_stop] 

to

node[public_transport=platform] 

.

Steps taken.
1) create an empty text file. Name it foo.css (or something with css extension)
2) copy the code
3) paste the code into foo.css
4) save the file somewhere accessible.
5) run JOSM
6) go to setup -> map settings -> map paint styles
7) under Active Styles box, click "+"
8) find your file and add it here at the bottom.
9) click ok, and you're ready to go. Might need to restart JOSM.

You could tinker with other stuff to render the rendering version that you prefer over standard rendering.

Again, thank you klumbumbus.

Offline

#4 2020-10-11 10:38:21

Klumbumbus
Member
From: Erzgebirgskreis
Registered: 2014-01-12
Posts: 630
Website

Re: JOSM: prefering rendition highway bus stop to public transport platfor

kucai wrote:

Thanks. I got that to work, except I changed

Yes, that was wrong by me.

Offline

Board footer

Powered by FluxBB