- AuthorPosts
- April 15, 2021 at 09:44 #42920tartiflette74Participant
Hi,
I’m trying to update some rules in my theme file to control which type of huts and shelters to show.
I have a question about this item, which has amenity=shelter and shelter_type=basic_hut.
Of course, it shows with any of these rules:
<rule e="any" k="amenity" v="shelter">
<rule e="any" k="shelter_type" v="basic_hut">
but also with:
<rule e="any" k="amenity" v="basic_hut">
Why is that? I can’t find an reason looking at tagmapping or in tagtransform.
Thanks!April 15, 2021 at 12:05 #42923JohnPercyParticipantIt’s what’s known as the common value bug. Basically the Mapsforge renderer collects the data values of the item together in a list like:
k=amenity, shelter_type
v=shelter, basic_hut
Then k matches on any of the values in the k list, and v matches on any of the values in the v list.
The same thing happens with all variables so you have to build your tests with this in mind.Voluntary and Velocity themes - https://voluntary.nichesite.org
2 users thanked author for this post.
- AuthorPosts
- You must be logged in to reply to this topic.