sumo icon indicating copy to clipboard operation
sumo copied to clipboard

Arbitrary text with poi

Open btopii32 opened this issue 2 years ago • 3 comments

Hello guys, I'm trying to write arbitrary text on the sumo gui. I found out that poi is the way to go. I tried implementing it but the text is not showing. Can anyone help me with the implementation please?

btopii32 avatar Sep 20 '22 17:09 btopii32

Please show what you tried and the we can work on it. You can basically visualize any param you give to the poi or "abuse" the type attribute. then you need to enable drawing in the visualization settings in sumo-gui.

behrisch avatar Sep 21 '22 07:09 behrisch

What do you mean by visualize any param sir? Been reading around it but haven't been able to understand. This is me trying use the visualization in poi tab but I don't know what check boxes to tick. Below: vijay.png

btopii32 avatar Sep 21 '22 10:09 btopii32

I also used this tag in my .sumocfg file

 <poi id="text1" type="this is my text" x="-55.19" y="83.66" color="0,0,0"/> 

btopii32 avatar Sep 21 '22 10:09 btopii32

What do you mean by visualize any param

If your poi looks like this:

 <poi id="text1" type="something unrelated" x="-55.19" y="83.66" color="0,0,0"> 
       <param key="custom" value="this is my text"/>
  </poi>

Then you can activate the gui setting 'Show poi text param' and select param 'custom' from the drop-down menu to the right of that checkbox.

However, for the poi you showed, activating 'Show poi type' is sufficient.

namdre avatar Sep 22 '22 05:09 namdre