Skip to content

Commit

Permalink
Require feature check when checking for mall
Browse files Browse the repository at this point in the history
Without this, CartoCSS has to check for mall on all non-shop
features, a significant combinatorial explosion.
  • Loading branch information
pnorman committed Jul 14, 2022
1 parent 828c41a commit 073cc69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions style/amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -2202,8 +2202,8 @@
[feature = 'leisure_pitch'] {
[zoom >= 10][way_pixels > 3000][is_building = 'no'],
[zoom >= 17][is_building = 'no'],
[zoom >= 10][way_pixels > 3000][shop = 'mall'],
[zoom >= 17][shop = 'mall'] {
[zoom >= 10][way_pixels > 3000][feature = 'shop'][shop = 'mall'],
[zoom >= 17][feature = 'shop'][shop = 'mall'] {
text-name: "[name]";
text-size: @landcover-font-size;
text-wrap-width: @landcover-wrap-width-size;
Expand Down

0 comments on commit 073cc69

Please sign in to comment.