You are not logged in.

#1 2012-07-02 14:29:29

Lübeck
Member
Registered: 2009-02-17
Posts: 2,828

JOSM: show only Icon when no other defintion exists

hi !

i want to create a icon that only should be view when there is no other icon-defintion for this tag.

<rule>
<condition k="lastcheck"/>
<icon annotate="true" src="lastcheck.png" priority="-100"/>
</rule>

but independent of priority =10000 or priority = 0 or priority = -10000 the icon will show everytime.

the last way i craete a single present-File with this source and put it at the last position of present-files.

-> the icon will show everytime even ex. amenity = recycling will define.

is there anyway to the target ??

regards Jan :-)


Redmi Note 9 Pro  mit Android 11, Tablet Android 8.1, PC: Win10

Online

#2 2012-07-03 11:59:27

bastik
Member
Registered: 2011-08-05
Posts: 58

Re: JOSM: show only Icon when no other defintion exists

Putting the following at the bottom of elemstyles.xml, it works for me as intended.

<rule>
<condition k="lastcheck"/>
<icon annotate="true" src="lastcheck.png" priority="-10000"/>
</rule>

Offline

#3 2012-07-03 12:46:48

Lübeck
Member
Registered: 2009-02-17
Posts: 2,828

Re: JOSM: show only Icon when no other defintion exists

hi !

thanks - but this edit is to do after every update ! isn't it ?

reagards Jan :-)


Redmi Note 9 Pro  mit Android 11, Tablet Android 8.1, PC: Win10

Online

Board footer

Powered by FluxBB