Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42920
    tartiflette74
    Participant

    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!

    #42923
    Avatar photoJohnPercy
    Participant

    It’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.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.