Betrachte 2 Beiträge - 1 bis 2 (von insgesamt 2)
  • Autor
    Beiträge
  • #42920
    tartiflette74
    Teilnehmer

    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-FotoJohnPercy
    Teilnehmer

    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.
Betrachte 2 Beiträge - 1 bis 2 (von insgesamt 2)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.