import:
  - ../TOMBaseStyles/TOMSourceProd.yaml?a=2
  - ../TOMBaseStyles/TOMLight.yaml??a=4

layers:
    roads:
        data: { source: mapzen }
        filter:
          $zoom:
              min: 1
              max: 25
          not: { kind: ferry }
        draw:
            lines:
                order: 2
                color: 'gray'
                width: 5

        primaryroads:
            filter:
                kind: [highway]
                not:
                    kind_detail: [trunk,motorway_link,trunk_link]
                $zoom:
                    max: 25
            draw:
                lines:
                    order: 3
                    color: red
                    width: 20
        highways:
            filter:
#                kind: [major_road]
                kind_detail: primary
                not:
                    kind: highway
                $zoom:
                    min: 13
                    max: 25
            draw:
                lines:
                    order: 5
                    color: red
                    width: 10
        labels:
            filter:
                name: true
                aeroway: false
                tunnel: false
                railway: false
                $zoom:
                    min: 15
                    max: 25
                not: { kind: rail }
            draw:
                text:
                    font:
                        fill: black
                        family: Helvetica
                        size: 11px

            highway:
                filter: { kind: highway }
                draw:
                    text:
                        font:
                            size: 12px
                            weight: bold

    buildings:
        data: { source: mapzen , layer: buildings}
#        wikiicon:
#            filter :
#                wikipedia: true
#            draw:
#                ui-icons-overlay:
#                    size: 16px
#                    visible: true
#                    sprite: wikipedia
        publicbuildings:
            filter:
                kind_detail: [civic,clubhouse,sports_centre,temple,place_of_worship,palace,transportation,sportcentre,sportscenter,fire_station,station,medical,hospital,public,school,government,library,courthouse,university,museum,train_station,public_building,chapel,church,mosque,cathedral,community,city_hall,stadium]
            draw:
                lines:
                    color: black
                    size: .01
                polygons:
                    color: "#2422B6"
        residential:
            filter:
                kind_detail: [residential,house,houseboat,boathouse,apartments]
            draw:
                lines:
                    color: black
                    size: .01
                polygons:
                    color: yellow
        infrastructure:
            filter:
                kind_detail: [water_tower,toilet,silo,barn,storage,boat,container,tunnel,guard_house,pontoon,datacenter,watch_house,gate,pump_house,viaduct,ramp,beehive,shelter,gatehouse]
            draw:
                lines:
                    color: black
                    size: .01
                polygons:
                    color: green
        commercial:
            filter:
                kind_detail: [shop,retail,bank,commercial,hotel,office]
            draw:
                lines:
                    color: black
                    size: .01
                polygons:
                    color: magenta
        industrial:
            filter:
                kind_detail: [manufacture,factory,store,henhouse,industrial,storage_tank,warehouse]
            draw:
                lines:
                    color: black
                    size: .01
                polygons:
                    color: '#800080'
        draw:
            polygons:
                order: 50
                color: '#bbb'
                interactive: true
