how to define own icon for object

10 views
Skip to first unread message

Jan Tappenbeck

unread,
May 24, 2017, 3:03:40 PM5/24/17
to osmeditor4android
hi!

i define several presents with my own icons and they will show when poi will be insert.

now i define

                  <item name="Rolli-Parkplatz" icon="rolli.png">
            <key key="amenity" value="parking_space"/>
            <key key="parking_space" value="disabled"/>
             <combo key="capacity"
                text="Anzahl Stellplätze"
                de.text="Anzahl Stellplätze"
                values="1,2,3,4,5,6"
                display_values="1,2,3,4,5,6"
                default=""
                delete_if_empty="true" />
             <combo key="access"
                text="Access"
                de.text="Art des Zugangs"
                values="customers,public,private"
                display_values="Kunden, Öffentlich,Private"
                default=""
                delete_if_empty="true" />
             <combo key="parking"
                text="Art des Stellplatzes"
                de.text="Art des Stellplatzes"
                values="surface,multi-storey,underground,rooftop,sheds,carports,garage_boxes"
                display_values="Standard (Ebene),Parkhaus,Tiefgarage,Dach,private Bauten,Carport,Garage"
                default="surface"
                delete_if_empty="true" />
            <text key="ref" text="Nummer zugewiesen" default="" delete_if_empty="true"/>
            <text key="parking:condition:maxstay" text="max. Verweildauer [min]" default="" delete_if_empty="true"/>
            <text key="parking:condition:time_interval" text="Rolli in der Zeit von ..." default="" delete_if_empty="true"/>
        </item>

but this poi will not show with my icon - it used the icon or parking_space.

is it possible to define a way to show the rolli.png - icon?

regards Jan

gerne auch Antworten in deutsch

Simon Poole

unread,
May 24, 2017, 4:31:38 PM5/24/17
to osmeditor4android
In principle this looks OK and should match with higher preference(because of the two fixed keys) than the amenity parking_space preset (which has only one fixed key). So it may simply be a bug, but there is something missing from the preset a type attribute, likely. type="node,closedway" I would have to look at the code, but I suspect without the type attribute it will match with nothing.

Simon
Reply all
Reply to author
Forward
0 new messages