tangrams / walkabout-style

Preview map:
https://tangrams.github.io/walkabout-style
MIT License
32 stars 14 forks source link

Prioritize existing basic outdoor POI labels #5

Closed nvkelso closed 8 years ago

nvkelso commented 8 years ago

The following often appear on outdoor maps and are probably included in our current base maps, but at later zooms. For the outdoor style, let's relax visibility rules to show these as soon as they are visible in tiles (remove early zoom filters).

nvkelso commented 8 years ago

This is mostly kinda working already (without any changes), but maybe polish is needed?

nvkelso commented 8 years ago

Mostly done?

            not-outdoor-not-landuse:
                filter: { area: false, not: { kind: [park, national_park, outdoor, bbq, bicycle_repair_station, dive_centre, life_ring, picnic_table, shower, waste_disposal, watering_place, water_point, lifeguard_tower, power_pole, power_tower, petroleum_well, ranger_station, caravan_site, picnic_table, picnic_site, bbq, dog_park, firepit , swimming_area, fishing_area, slipway, shower, bicycle_junction, walking_junction, waterfall, summer_camp, dam, battlefield, boat_storage] } }
                draw: 
                    icons:
                        order: 45
                        visible: function() { if( $zoom <= 16 ) { return false; } else { if( feature.min_zoom <= $zoom ) { return true; } else { return false; } } }
                    text-blend-order:
                        order: 46
                        visible: function() { if( $zoom <= 16 ) { return false; } else { if( feature.min_zoom <= $zoom ) { return true; } else { return false; } } }
nvkelso commented 8 years ago

Expanded this section:

outdoor-has-icons:
                filter: { kind: [outdoor, lighthouse, peak, saddle, picnic_area, camp_site, ski, mine, zoo, museum, gas, gas_canister] }
                draw: 
                    icons:
                        order: 41
                        visible: function() { if( feature.min_zoom <= $zoom ) { return true; } else { return false; } }
                    text-blend-order:
                        order: 42