You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2015-12-29 10:59:48

Allroads
Member
Registered: 2011-03-05
Posts: 3,316

JOSM, Mapstyle, numbers

I like to see some ref numbers,  big on the the screen at some nodes.

See some mapstyles.

How to make such Mapstyle part.
Also the number placed beside, the icon on the node.

How do I style that?

Say ref=345 on node

Need some example to work further, if you have the clue, the important part, the rest follow.

Offline

#2 2015-12-29 17:50:23

stephan75
Member
Registered: 2008-05-28
Posts: 2,918

Re: JOSM, Mapstyle, numbers

If I am not wrong, JOSM map styles are written in MapCSS

see http://wiki.openstreetmap.org/wiki/MapCSS for more hints.

Offline

#3 2015-12-29 18:54:02

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

Re: JOSM, Mapstyle, numbers

Yes mapcss.
See here for already existing styles: https://josm.openstreetmap.de/wiki/Styles
Full mapcss docu is here: https://josm.openstreetmap.de/wiki/Help … ementation

As starting point you can try:

node[ref] {
    text: ref;
    font-size: 25;
    text-color: purple;
    text-halo-color: yellow;
    text-halo-radius: 3;
}

Offline

#4 2015-12-29 19:36:09

Allroads
Member
Registered: 2011-03-05
Posts: 3,316

Re: JOSM, Mapstyle, numbers

Thanks, I try

Offline

#5 2015-12-31 02:51:24

Allroads
Member
Registered: 2011-03-05
Posts: 3,316

Re: JOSM, Mapstyle, numbers

Edit: I just realized this is a preset question.


optional:

<key key="direction" text="Degrees/number 0-359" />

This give a failure, any suggestions?

Last edited by Allroads (2015-12-31 02:53:10)

Offline

#6 2015-12-31 13:27:15

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

Re: JOSM, Mapstyle, numbers

see preset docu: https://josm.openstreetmap.de/wiki/TaggingPresets

"key" is only for a fixed key value pair. You need "text":

<text key="direction" text="Degrees/number 0-359" />

Offline

#7 2015-12-31 13:59:08

Allroads
Member
Registered: 2011-03-05
Posts: 3,316

Re: JOSM, Mapstyle, numbers

thanks I read there but did not understand how, overlooked it somehow, English not my daily language

Last edited by Allroads (2015-12-31 14:01:12)

Offline

Board footer

Powered by FluxBB