OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2019-07-18 10:11:01

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Enlarge node

Enlarge node in data layer, is it possible?
I tried but failed.
thank you.

Offline

#2 2019-07-18 10:50:59

RicoElectrico
Member
From: Trójmiasto
Registered: 2012-07-01
Posts: 1,198

Re: Enlarge node

Which editor, which node? Please give more details wink

You can post screenshots to imgur.com and paste links.

Offline

#3 2019-07-18 10:59:14

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

In JOSM smile sorry

n.jpg

Offline

#4 2019-07-18 15:15:50

lmason_aph
Member
From: KY, USA
Registered: 2018-02-16
Posts: 16
Website

Re: Enlarge node

Im not sure if I understand the issue correctly, but I have enlarged nodes by manipulating a .css style sheet, which there is a pretty extensive wiki on. That would explain the process much more coherently than I could smile

Last edited by lmason_aph (2019-07-18 15:17:22)

Offline

#5 2019-07-18 15:29:00

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

The nodes are small and to take them with the mouse is tiring, I would like to enlarge them.

Well, what should I do?

Offline

#6 2019-07-18 16:06:04

lmason_aph
Member
From: KY, USA
Registered: 2018-02-16
Posts: 16
Website

Re: Enlarge node

Try this at your own risk: Open you preferences module.
Go to the last icon that should be Advanced Preferences
Scroll down until you see: mappaint.node.unselected-size
Change that value from 3 to 6(??) and see if that helps.

Repeat: Im not sure if I understand the question correctly, and playing around in Advanced preferences can lead to some bad stuff, so do this at your own risk!

Offline

#7 2019-07-18 16:40:06

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

The yellow knot is too small, I would like it bigger.
I tried like you said it didn't get bigger.

j.jpg

Offline

#8 2019-07-18 16:49:05

lmason_aph
Member
From: KY, USA
Registered: 2018-02-16
Posts: 16
Website

Re: Enlarge node

There are a few nodes in that advanced preferences box you could try the same thing with. Maybe JOSM is considering that another type of node? If that doesnt work, you will have to create a .css style sheet, which I cannot begin to explain, but there is Wiki page on it that explains the whole process. I have my nodes and icons different sizes, but I had to create my own style sheet.
Unfortunately, thats all I have! Ive run out of ideas sad

Offline

#9 2019-07-18 16:53:57

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

I had already tried to change some options, I try again ..
thanks, I hope someone comes along to help me ..

Offline

#10 2019-07-18 18:12:35

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

Re: Enlarge node

a n t o n y b wrote:

The nodes are small and to take them with the mouse is tiring

Please note that you do not need to exactly hit the node. There is "snap radius" which is larger than the visible node. Have a look by slowly moving your mouse to the node and when it gets the red background you can already click to select it. To enlarge that snap radius you can change the key mappaint.node.snap-distance in the advanced preferences.
The size of the visible nodes depends on the mappaint style(s) you have enabled.
If you really like to enlarge the visible nodes then you can enable the mappaint style "HiDPI Support". If even then they are not big enough you can change the key node-size-factor. See https://josm.openstreetmap.de/wiki/Styles/HiDPISupport

Offline

#11 2019-07-18 19:53:42

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

Problem solved with mappaint.node.snap-distance, thank you very much !!

I didn't understand all those codes.
I didn't find the node-size-factor key but I don't need it that much.
I had increased the characters from Windows.

Offline

#12 2019-07-18 19:58:25

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

Re: Enlarge node

a n t o n y b wrote:

I didn't find the node-size-factor key but I don't need it that much.

You can add it manually to the advanced preferences if it is not available. (Requires the mappaint style "HiDPI Support" though.)

Offline

#13 2019-07-18 20:00:02

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

Ok, how do I add "HiDPI Support"?

Offline

#14 2019-07-18 20:18:45

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

Offline

#15 2019-07-19 09:20:24

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

Where do I enter this code?

meta {
     titolo : "Supporto HiDPI" ;
     versione : "1.9_2018-03-24" ;
     descrizione : "Permette di ridimensionare la dimensione dei nodi e la dimensione del font dello stile JOSM predefinito."  ;
     icona : "HiDPISupportLogo.svg" ;
     autore : "Klumbumbus" ;
     link : "https://josm.openstreetmap.de/wiki/Styles/HiDPISupport" ;
     orologio modificato : vero ;
     versione min-josm : "10018" ;
     / * Questo stile mapint mapcss è solo una soluzione temporanea fino alla risoluzione del ticket 9995.  * /
 }

impostazione :: shrink_nodes {
   tipo : booleano ;
   label : tr ( "Simboli nodo meno invadente con zoom basso" );
   default : true ;
 }

* {
     font-size-summand : JOSM_pref ( "font-size-summand" , 2 );
 }
 nodo {
     node-size-factor : JOSM_pref ( "node-size-factor" , 1. 8 );
 }


node [ "openGeoDB: type" ],
 nodo [ luogo ] {
     font-size : 10 + prop ( "font-size-summand" );
 }

nodo |  z-16 ,
 nodo [!  is_prop_set ( "icon-image" )]!  .maxspeedclass {
     symbol-size : 2 * prop ( "node-size-factor" );
 }

modo > nodo |  z16 [ setting ( "shrink_nodes" )]!  : tagged { symbol-size : 1 * prop ( "node-size-factor" );  }

nodo |  z17 [ setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 modo > nodo |  z17 [ setting ( "shrink_nodes" )] { symbol-size : 2 * prop ( "node-size-factor" );  }
 nodo |  z17 [ setting ( "shrink_nodes" )] : connection { symbol-size : 4 * prop ( "node-size-factor" );  }

nodo |  z18 [ setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 modo > nodo |  z18 [ setting ( "shrink_nodes" )] { symbol-size : 3 * prop ( "node-size-factor" );  }
 nodo |  z18 [ setting ( "shrink_nodes" )] : connection { symbol-size : 5 * prop ( "node-size-factor" );  }

nodo |  z19- [ setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 modo > nodo |  z19- [ setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 nodo |  z19- [ setting ( "shrink_nodes" )] : connection { symbol-size : 6 * prop ( "node-size-factor" );  }

nodo [!  setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 modo > nodo [!  setting ( "shrink_nodes" )] { symbol-size : 4 * prop ( "node-size-factor" );  }
 nodo [!  setting ( "shrink_nodes" )] : connection { symbol-size : 6 * prop ( "node-size-factor" );  }

nodo : selezionato {
     symbol-size : 6 * prop ( "node-size-factor" );
 }

nodo |  z-18 , area |  z-18 { font-size : 8 + prop ( "font-size-summand" );  }
 nodo |  z19 , area |  z19 { font-size : 9 + prop ( "font-size-summand" );  }
 nodo |  z20- , area |  z20- { font-size : 10 + prop ( "font-size-summand" );  }

modo |  z17 [ autostrada ] {
     font-size : 9 + prop ( "font-size-summand" );
 }
 modo |  z18 [ autostrada ] {
     font-size : 10 + prop ( "font-size-summand" );
 }
 modo |  z19 [ autostrada ] {
     font-size : 11 + prop ( "font-size-summand" );
 }
 modo |  z20- [ autostrada ] {
     font-size : 12 + prop ( "font-size-summand" );

Offline

#16 2019-07-19 13:46:28

lmason_aph
Member
From: KY, USA
Registered: 2018-02-16
Posts: 16
Website

Re: Enlarge node

Again, I dont know if Im telling you the correct way to do this, I only know what worked for me. Caveat Emptor   neutral
In Preferences: Map Paint Styles tab, find a style that will let you modify it.
The one I use is JOSM Default (mapCSS). Some of them wont let you modify. Look for the paper and pencil icon.
Map to that location at the pop-up box that comes up after you click the paper and pencil icon. 
Save it to wherever you prefer to save mapping stuff.
Open it as a text file, and modify it the way you want. Just follow how the original coder did it, but insert your changes.
I use an RGB hex code chart to change colors, also.
When you are finished, re-save it as a .css file. Thats all there is to it.
That is what worked for me, but I'm sure a more technically proficient person would do it differently.
You can leave the file open and monitor if the changes worked or not in real time in your JOSM map, when you click 'save'.

Good luck!

Last edited by lmason_aph (2019-07-19 13:47:07)

Offline

#17 2019-07-19 17:13:33

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

Re: Enlarge node

a n t o n y b wrote:

Where do I enter this code?

Nowhere. Do what you see in this video: https://josm.openstreetmap.de/attachmen … dstyle.gif

Offline

#18 2019-07-20 10:20:58

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

I tried to enable maxspeed: https://josm.openstreetmap.de/attachmen … dstyle.gif I noticed that if I disable default josm and enable maxspeed the nodes get bigger ..
You were right, it doesn't do much ... but it is important to have the area around the node in order to take it with the mouse.
Thank you all..

Last edited by a n t o n y b (2019-07-20 10:26:54)

Offline

#19 2019-07-20 10:25:41

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

Re: Enlarge node

You should not enable "Maxspeed" but "HiDPI Support" the same way as shown in the video. Thats just an example.

Offline

#20 2019-07-20 10:31:48

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

I did ... it only magnifies my knots, the same max speed, is that okay?

Offline

#21 2019-07-22 15:48:27

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

Can also increase the + snap radius?

Offline

#22 2019-07-22 17:36:07

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

Re: Enlarge node

a n t o n y b wrote:

Can also increase the + snap radius?

Yes, increase mappaint.node.virtual-snap-distance in the advanced preferences.

Offline

#23 2019-07-22 19:22:30

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

I tried but it doesn't work, I also rebooted to Josm.
I have increased mappaint.node.virtuale-dimensions has enlarged the +.
I prefer to have more snap radius
Thank you.

Offline

#24 2019-07-22 20:09:35

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

Re: Enlarge node

a n t o n y b wrote:

I tried but it doesn't work

Indeed. I created a ticket. https://josm.openstreetmap.de/ticket/17954

Offline

#25 2019-07-23 19:48:14

a n t o n y b
Member
Registered: 2016-07-27
Posts: 18

Re: Enlarge node

Great ...
So let's wait until it resolves ...
Thank you, you are the number one!

Offline

Board footer

Powered by FluxBB