Update palette.mss

Update palette.mss

/* ****************************************************************** */
/* OSM BRIGHT for Imposm                                              */
/* ****************************************************************** */

/* For basic style customization you can simply edit the colors and
 * fonts defined in this file. For more detailed / advanced
 * adjustments explore the other files.
 *
 * GENERAL NOTES
 *
 * There is a slight performance cost in rendering line-caps.  An
 * effort has been made to restrict line-cap definitions to styles
 * where the results will be visible (lines at least 2 pixels thick).
 */

/* ================================================================== */
/* FONTS
/* ================================================================== */

/* directory to load fonts from in addition to the system directories */
Map { font-directory: url(./fonts); }

/* set up font sets for various weights and styles */
@sans_lt:           "Open Sans Regular","DejaVu Sans Book","unifont Medium";
@sans_lt_italic:    "Open Sans Italic","DejaVu Sans Italic","unifont Medium";
@sans:              "Open Sans Semibold","DejaVu Sans Book","unifont Medium";
@sans_italic:       "Open Sans Semibold Italic","DejaVu Sans Italic","unifont Medium";
@sans_bold:         "Open Sans Bold","DejaVu Sans Bold","unifont Medium";
@sans_bold_italic:  "Open Sans Bold Italic","DejaVu Sans Bold Italic","unifont Medium";

/* Some fonts are larger or smaller than others. Use this variable to
   globally increase or decrease the font sizes. */
/* Note this is only implemented for certain things so far */
@text_adjust: 0;

/* ================================================================== */
/* COLOR PALETTE
/* ================================================================== */
@grey1: #595959;
@black: #000000;
@white: #ffffff;
@grey2: #8F8F8F;
@grey3: #D6D6D6;
@orange: #FF6600;
@blue: #4BB4E6;
@yellow: #FFDC00;
@green: #50BE87;
@purple: #9164CD;
@pink: #FFB4E6;

/* ================================================================== */
/* LANDUSE & LANDCOVER COLORS
/* ================================================================== */

@land:              @grey1;
@water:             @blue;
@grass:             @green;
@beach:             @yellow;
@park:              @green;
@cemetery:          @grey3;
@wooded:            @green;
@agriculture:       @grey3;

@building:          @orange;
@hospital:          @purple;
@school:            @purple;
@sports:            @green;

@residential:       @grey3;
@commercial:        @grey3;
@industrial:        @grey3;
@parking:           @grey3;

/* ================================================================== */
/* ROAD COLORS
/* ================================================================== */

/* For each class of road there are three color variables:
 * - line: for lower zoomlevels when the road is represented by a
 *         single solid line.
 * - case: for higher zoomlevels, this color is for the road's
 *         casing (outline).
 * - fill: for higher zoomlevels, this color is for the road's
 *         inner fill (inline).
 */

@motorway_line:     @grey1;
@motorway_fill:     lighten(@motorway_line,10%);
@motorway_case:     @motorway_line * 0.9;

@trunk_line:        @grey1;
@trunk_fill:        lighten(@trunk_line,10%);
@trunk_case:        @trunk_line * 0.9;

@primary_line:      @grey1;
@primary_fill:      lighten(@primary_line,10%);
@primary_case:      @primary_line * 0.9;

@secondary_line:    @grey1;
@secondary_fill:    lighten(@secondary_line,10%);
@secondary_case:    @secondary_line * 0.9;

@standard_line:     @grey1;
@standard_fill:     @grey1;
@standard_case:     @land * 0.9;

@pedestrian_line:   @grey1;
@pedestrian_fill:   @grey1;
@pedestrian_case:   @grey1;

@cycle_line:        @grey1;
@cycle_fill:        @grey1;
@cycle_case:        @grey1;

@rail_line:         @grey1;
@rail_fill:         @grey1;
@rail_case:         @grey1;

@aeroway:           @grey1;

/* ================================================================== */
/* BOUNDARY COLORS
/* ================================================================== */

@admin_2:           @purple;

/* ================================================================== */
/* LABEL COLORS
/* ================================================================== */

/* We set up a default halo color for places so you can edit them all
   at once or override each individually. */
@place_halo:        fadeout(#fff,34%);

@country_text:      #435;
@country_halo:      @place_halo;

@state_text:        #546;
@state_halo:        @place_halo;

@city_text:         #444;
@city_halo:         @place_halo;

@town_text:         #666;
@town_halo:         @place_halo;

@poi_text:          #888;

@road_text:         #777;
@road_halo:         #fff;

@other_text:        #888;
@other_halo:        @place_halo;

@locality_text:     #aaa;
@locality_halo:     @land;

/* Also used for other small places: hamlets, suburbs, localities */
@village_text:      #888;
@village_halo:      @place_halo;

/* ****************************************************************** */

/* ****************************************************************** */
/* OSM BRIGHT for Imposm                                              */
/* ****************************************************************** */

/* For basic style customization you can simply edit the colors and
 * fonts defined in this file. For more detailed / advanced
 * adjustments explore the other files.
 *
 * GENERAL NOTES
 *
 * There is a slight performance cost in rendering line-caps.  An
 * effort has been made to restrict line-cap definitions to styles
 * where the results will be visible (lines at least 2 pixels thick).
 */

/* ================================================================== */
/* FONTS
/* ================================================================== */

/* directory to load fonts from in addition to the system directories */
Map { font-directory: url(./fonts); }

/* set up font sets for various weights and styles */
@sans_lt:           "Open Sans Regular","DejaVu Sans Book","unifont Medium";
@sans_lt_italic:    "Open Sans Italic","DejaVu Sans Italic","unifont Medium";
@sans:              "Open Sans Semibold","DejaVu Sans Book","unifont Medium";
@sans_italic:       "Open Sans Semibold Italic","DejaVu Sans Italic","unifont Medium";
@sans_bold:         "Open Sans Bold","DejaVu Sans Bold","unifont Medium";
@sans_bold_italic:  "Open Sans Bold Italic","DejaVu Sans Bold Italic","unifont Medium";

/* Some fonts are larger or smaller than others. Use this variable to
   globally increase or decrease the font sizes. */
/* Note this is only implemented for certain things so far */
@text_adjust: 0;

/* ================================================================== */
/* COLOR PALETTE
/* ================================================================== */
@grey1: #595959;
@black: #000000;
@white: #ffffff;
@grey2: #8F8F8F;
@grey3: #D6D6D6;
@orange: #FF6600;
@blue: #4BB4E6;
@yellow: #FFDC00;
@green: #50BE87;
@purple: #9164CD;
@pink: #FFB4E6;

/* ================================================================== */
/* LANDUSE & LANDCOVER COLORS
/* ================================================================== */

@land:              @grey1;
@water:             @blue;
@grass:             @green;
@beach:             @yellow;
@park:              @green;
@cemetery:          @grey3;
@wooded:            @green;
@agriculture:       @grey3;

@building:          @orange;
@hospital:          @purple;
@school:            @purple;
@sports:            @green;

@residential:       @grey3;
@commercial:        @grey3;
@industrial:        @grey3;
@parking:           @grey3;

/* ================================================================== */
/* ROAD COLORS
/* ================================================================== */

/* For each class of road there are three color variables:
 * - line: for lower zoomlevels when the road is represented by a
 *         single solid line.
 * - case: for higher zoomlevels, this color is for the road's
 *         casing (outline).
 * - fill: for higher zoomlevels, this color is for the road's
 *         inner fill (inline).
 */

@motorway_line:     @grey1;
@motorway_fill:     lighten(@motorway_line,10%);
@motorway_case:     @motorway_line * 0.9;

@trunk_line:        @grey1;
@trunk_fill:        lighten(@trunk_line,10%);
@trunk_case:        @trunk_line * 0.9;

@primary_line:      @grey1;
@primary_fill:      lighten(@primary_line,10%);
@primary_case:      @primary_line * 0.9;

@secondary_line:    @grey1;
@secondary_fill:    lighten(@secondary_line,10%);
@secondary_case:    @secondary_line * 0.9;

@standard_line:     @grey1;
@standard_fill:     @grey1;
@standard_case:     @land * 0.9;

@pedestrian_line:   @grey1;
@pedestrian_fill:   @grey1;
@pedestrian_case:   @grey1;

@cycle_line:        @grey1;;
@cycle_fill:        @grey1;
@cycle_case:        @grey1;

@rail_line:         @grey1;
@rail_fill:         @grey1;
@rail_case:         @grey1;

@aeroway:           @grey1;

/* ================================================================== */
/* BOUNDARY COLORS
/* ================================================================== */

@admin_2:           @purple;

/* ================================================================== */
/* LABEL COLORS
/* ================================================================== */

/* We set up a default halo color for places so you can edit them all
   at once or override each individually. */
@place_halo:        fadeout(#fff,34%);

@country_text:      #435;
@country_halo:      @place_halo;

@state_text:        #546;
@state_halo:        @place_halo;

@city_text:         #444;
@city_halo:         @place_halo;

@town_text:         #666;
@town_halo:         @place_halo;

@poi_text:          #888;

@road_text:         #777;
@road_halo:         #fff;

@other_text:        #888;
@other_halo:        @place_halo;

@locality_text:     #aaa;
@locality_halo:     @land;

/* Also used for other small places: hamlets, suburbs, localities */
@village_text:      #888;
@village_halo:      @place_halo;

/* ****************************************************************** */


Increasing size for small city label

Increasing size for small city label

/* LABELS.MSS CONTENTS:
 * - place names
 * - area labels
 * - waterway labels
 */

/* Font sets are defined in palette.mss */

/* ================================================================== */
/* PLACE NAMES
/* ================================================================== */

#place::country[type='country'][zoom>3][zoom<9] {
  text-name:'[name]';
  text-face-name:@sans_bold;
  text-placement:point;
  text-fill:@country_text;
  text-halo-fill: @country_halo;
  text-halo-radius: 1;
  [zoom=3] {
    text-size:10 + @text_adjust;
    text-wrap-width: 40;
  }
  [zoom=4] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
  }
  [zoom>4] {
    text-halo-radius: 2;
  }
  [zoom=5] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
    text-line-spacing: 1;
  }
  [zoom=6] {
    text-size:12 + @text_adjust;
    text-character-spacing: 1;
    text-wrap-width: 80;
    text-line-spacing: 2;
  }
  [zoom=7] {
    text-size:14 + @text_adjust;
    text-character-spacing: 2;
  }
}

#place::state[type='state'][zoom>=6][zoom<=10] {
  text-name:'[name]';
  text-face-name:@sans_bold_italic;
  text-placement:point;
  text-fill:@state_text;
  text-halo-fill: @state_halo;
  text-halo-radius: 1;
  [zoom=6] {
    text-size:10 + @text_adjust;
    text-wrap-width: 40;
  }
  [zoom=7] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
  }
  [zoom>8] {
    text-halo-radius: 2;
  }
  [zoom=8] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
    text-line-spacing: 1;
  }
  [zoom=9] {
    text-size:12 + @text_adjust;
    text-character-spacing: 1;
    text-wrap-width: 80;
    text-line-spacing: 2;
  }
  [zoom=10] {
    text-size:14 + @text_adjust;
    text-character-spacing: 2;
  }
}

/* ---- Cities ------------------------------------------------------ */

#place::city[type='city'][zoom>=9][zoom<=15] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@city_text;
  text-halo-fill:@city_halo;
  text-halo-radius:2;
  [zoom=9] {
    text-size:12;
    text-wrap-width: 60;
  }
  [zoom=10] {
    text-size:14;
    text-wrap-width: 70;
  }
  [zoom=11] {
    text-size:16;
    text-character-spacing: 1;
    text-wrap-width: 80;
  }
  [zoom=12] {
    text-size:18;
    text-character-spacing: 2;
    text-wrap-width: 200;
  }
  [zoom=13] {
    text-size:20;
    text-character-spacing: 4;
    text-wrap-width: 300;
    text-transform: uppercase;
  }
  [zoom=14] {
    text-size:22;
    text-character-spacing: 10;
    text-wrap-width: 500;
    text-transform: uppercase;
  }
  [zoom=15] {
    text-size:26;
    text-character-spacing: 16;
    text-wrap-width: 800;
    text-transform: uppercase;
  }
}

/* ---- Towns ------------------------------------------------------- */

#place::town[type='town'][zoom>=9][zoom<=17] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@town_text;
  text-size:9;
  text-halo-fill:@town_halo;
  text-halo-radius:2;
  text-wrap-width: 50;
  [zoom>=10] {
    text-halo-radius:2;
    text-size: 12;
  }
  [zoom>=11]{
    text-size:14;
  }
  [zoom>=12]{
    text-size:16;
    text-line-spacing: 1;
  }
  [zoom>=13]{
    text-size:18;
    text-transform: uppercase;
    text-character-spacing: 1;
    text-line-spacing: 2;
  }
  [zoom>=14]{
    text-size:20;
    text-character-spacing: 2;
    text-line-spacing: 3;
  }
  [zoom>=15]{
    text-size:22;
    text-character-spacing: 3;
    text-line-spacing: 4;
  }
  [zoom>=16]{
    text-size:24;
    text-character-spacing: 4;
    text-line-spacing: 5;
  }
  [zoom>=17]{
    text-size:26;
    text-character-spacing: 5;
    text-line-spacing: 6;
  }
}

/* ---- Other small places ------------------------------------------ */

#place::small[type='village'][zoom>=13],
#place::small[type='suburb'][zoom>=13],
#place::small[type='hamlet'][zoom>=13],
#place::small[type='neighbourhood'][zoom>=13] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@other_text;
  text-size:12;
  text-halo-fill:@other_halo;
  text-halo-radius:1;
  text-wrap-width: 30;
  [zoom>=14] {
    text-size:14;
    text-character-spacing: 1;
    text-wrap-width: 120;
    text-line-spacing: 1;
  }
  [zoom>=15] {
    text-size:15;
    text-halo-radius: 2;
    text-transform: uppercase;
    text-character-spacing: 1;
    text-wrap-width: 180;
    text-line-spacing: 1;
  }
  [zoom>=16] {
    text-size:16;
    text-character-spacing: 2;
    text-wrap-width: 240;
    text-line-spacing: 2;
  }
  [zoom>=17] {
    text-size:17;
    text-character-spacing: 3;
    text-wrap-width: 320;
    text-line-spacing: 4;
  }
  [zoom>=18] {
    text-size:18;
    text-character-spacing: 4;
    text-line-spacing: 6;
  }
}

#place::small[type='locality'][zoom>=15] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@locality_text;
  text-size:9;
  text-halo-fill:@locality_halo;
  text-halo-radius:1;
  text-wrap-width: 30;
  [zoom>=16] {
    text-size:10;
    text-wrap-width: 60;
    text-line-spacing: 1;
  }
  [zoom>=17] {
    text-size:11;
    text-wrap-width: 120;
    text-line-spacing: 2;
  }
  [zoom>=18] {
    text-size:12;
    text-character-spacing: 1;
    text-line-spacing: 4;
  }
}

// =====================================================================
// AREA LABELS
// =====================================================================

#area_label {
  // Bring in labels gradually as one zooms in, bases on polygon area
  [zoom>=10][area>102400000],
  [zoom>=11][area>25600000],
  [zoom>=13][area>1600000],
  [zoom>=14][area>320000],
  [zoom>=15][area>80000],
  [zoom>=16][area>20000],
  [zoom>=17][area>5000],
  [zoom>=18][area>=0] {
    text-name: "[name]";
    text-halo-radius: 1.5;
    text-face-name:@sans_italic;
    text-size: 11;
    text-wrap-width:30;
    text-fill: @area_text;
    text-halo-fill: @area_halo;
    // Specific style overrides for different types of areas:
    [type='park'][zoom>=10] {
      text-face-name: @sans_lt_italic;
      text-fill: darken(@park, 70%);
      text-halo-fill: lighten(@park, 10);
    }
    [type='golf_course'][zoom>=10] {
      text-fill: darken(@sports, 70%);
      text-halo-fill: lighten(@sports, 10);
    }
    [type='cemetery'][zoom>=10] {
      text-fill: darken(@cemetery, 70%);
      text-halo-fill: lighten(@cemetery, 10);
    }
    [type='hospital'][zoom>=10] {
      text-fill: darken(@hospital, 70%);
      text-halo-fill: lighten(@hospital, 10);
    }
    [type='college'][zoom>=10],
    [type='school'][zoom>=10],
    [type='university'][zoom>=10] {
      text-fill: darken(@school, 70%);
      text-halo-fill: lighten(@school, 10);
    }
    [type='water'][zoom>=10] {
      text-fill: darken(@water, 70%);
      text-halo-fill: lighten(@water, 10);
    }
  }
  [zoom=15][area>1600000],
  [zoom=16][area>80000],
  [zoom=17][area>20000],
  [zoom=18][area>5000] {
    text-name: "[name]";
    text-size: 13;
    text-wrap-width: 60;
    text-character-spacing: 1;
    text-halo-radius: 2;
  }
  [zoom=16][area>1600000],
  [zoom=17][area>80000],
  [zoom=18][area>20000] {
    text-size: 15;
    text-character-spacing: 2;
    text-wrap-width: 120;
  }
  [zoom>=17][area>1600000],
  [zoom>=18][area>80000] {
    text-size: 20;
    text-character-spacing: 3;
    text-wrap-width: 180;
  }
}

#poi[type='university'][zoom>=15],
#poi[type='hospital'][zoom>=16],
#poi[type='school'][zoom>=17],
#poi[type='library'][zoom>=17] {
  text-name:"[name]";
  text-face-name:@sans;
  text-size:10;
  text-wrap-width:30;
  text-fill: @poi_text;
}

/* ================================================================== */
/* WATERWAY LABELS
/* ================================================================== */

#waterway_label[type='river'][zoom>=13],
#waterway_label[type='canal'][zoom>=15],
#waterway_label[type='stream'][zoom>=17] {
  text-name: '[name]';
  text-face-name: @sans_italic;
  text-fill: darken(@water, 70%);
  text-halo-fill: fadeout(lighten(@water,5%),25%);
  text-halo-radius: 1;
  text-placement: line;
  text-min-distance: 400;
  text-size: 10;
  [type='river'][zoom=15],
  [type='canal'][zoom=17] {
    text-size: 11;
  }
  [type='river'][zoom>=16],
  [type='canal'][zoom=18] {
    text-size: 14;
    text-spacing: 300;
  }
}

/* ================================================================== */
/* ROAD LABELS
/* ================================================================== */

#motorway_label[zoom>=11][zoom<=14][reflen<=8] {
  shield-name: "[ref]";
  shield-size: 9;
  shield-face-name: @sans_bold;
  shield-fill: #fff;
  shield-file: url(img/shield-motorway-1.png);
  [type='motorway'] {
    [reflen=1] { shield-file: url(img/shield-motorway-1.png); }
    [reflen=2] { shield-file: url(img/shield-motorway-2.png); }
    [reflen=3] { shield-file: url(img/shield-motorway-3.png); }
    [reflen=4] { shield-file: url(img/shield-motorway-4.png); }
    [reflen=5] { shield-file: url(img/shield-motorway-5.png); }
    [reflen=6] { shield-file: url(img/shield-motorway-6.png); }
    [reflen=7] { shield-file: url(img/shield-motorway-7.png); }
    [reflen=8] { shield-file: url(img/shield-motorway-8.png); }
  }
  [type='trunk'] {
    [reflen=1] { shield-file: url(img/shield-trunk-1.png); }
    [reflen=2] { shield-file: url(img/shield-trunk-2.png); }
    [reflen=3] { shield-file: url(img/shield-trunk-3.png); }
    [reflen=4] { shield-file: url(img/shield-trunk-4.png); }
    [reflen=5] { shield-file: url(img/shield-trunk-5.png); }
    [reflen=6] { shield-file: url(img/shield-trunk-6.png); }
    [reflen=7] { shield-file: url(img/shield-trunk-7.png); }
    [reflen=8] { shield-file: url(img/shield-trunk-8.png); }
  }
  [zoom=11] { shield-min-distance: 60; } //50
  [zoom=12] { shield-min-distance: 80; } //60
  [zoom=13] { shield-min-distance: 120; } //120
  [zoom=14] { shield-min-distance: 180; }
}

#motorway_label[type='motorway'][zoom>9],
#motorway_label[type='trunk'][zoom>9] {
  text-name:"[name]";
  text-face-name:@sans_bold;
  text-placement:line;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:10;
  [zoom=11] { text-min-distance:70; }
  [zoom=12] { text-min-distance:80; }
  [zoom=13] { text-min-distance:100; }
}

#mainroad_label[type='primary'][zoom>12],
#mainroad_label[type='secondary'][zoom>13],
#mainroad_label[type='tertiary'][zoom>13] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:line;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:11;
}

#minorroad_label[zoom>14] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:line;
  text-size:9;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:11;
}

/* ================================================================== */
/* ONE-WAY ARROWS
/* ================================================================== */

#motorway_label[oneway!=0][zoom>=16],
#mainroad_label[oneway!=0][zoom>=16],
#minorroad_label[oneway!=0][zoom>=16] {
  marker-placement:line;
  marker-max-error: 0.5;
  marker-spacing: 200;
  marker-file: url(img/icon/oneway.svg);
  [oneway=-1] { marker-file: url(img/icon/oneway-reverse.svg); }
  [zoom=16] { marker-transform: "scale(0.5)"; }
  [zoom=17] { marker-transform: "scale(0.75)"; }
}

/* ****************************************************************** */

/* LABELS.MSS CONTENTS:
 * - place names
 * - area labels
 * - waterway labels
 */

/* Font sets are defined in palette.mss */

/* ================================================================== */
/* PLACE NAMES
/* ================================================================== */

#place::country[type='country'][zoom>3][zoom<9] {
  text-name:'[name]';
  text-face-name:@sans_bold;
  text-placement:point;
  text-fill:@country_text;
  text-halo-fill: @country_halo;
  text-halo-radius: 1;
  [zoom=3] {
    text-size:10 + @text_adjust;
    text-wrap-width: 40;
  }
  [zoom=4] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
  }
  [zoom>4] {
    text-halo-radius: 2;
  }
  [zoom=5] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
    text-line-spacing: 1;
  }
  [zoom=6] {
    text-size:12 + @text_adjust;
    text-character-spacing: 1;
    text-wrap-width: 80;
    text-line-spacing: 2;
  }
  [zoom=7] {
    text-size:14 + @text_adjust;
    text-character-spacing: 2;
  }
}

#place::state[type='state'][zoom>=6][zoom<=10] {
  text-name:'[name]';
  text-face-name:@sans_bold_italic;
  text-placement:point;
  text-fill:@state_text;
  text-halo-fill: @state_halo;
  text-halo-radius: 1;
  [zoom=6] {
    text-size:10 + @text_adjust;
    text-wrap-width: 40;
  }
  [zoom=7] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
  }
  [zoom>8] {
    text-halo-radius: 2;
  }
  [zoom=8] {
    text-size:11 + @text_adjust;
    text-wrap-width: 50;
    text-line-spacing: 1;
  }
  [zoom=9] {
    text-size:12 + @text_adjust;
    text-character-spacing: 1;
    text-wrap-width: 80;
    text-line-spacing: 2;
  }
  [zoom=10] {
    text-size:14 + @text_adjust;
    text-character-spacing: 2;
  }
}

/* ---- Cities ------------------------------------------------------ */

#place::city[type='city'][zoom>=9][zoom<=15] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@city_text;
  text-halo-fill:@city_halo;
  text-halo-radius:2;
  [zoom=9] {
    text-size:12;
    text-wrap-width: 60;
  }
  [zoom=10] {
    text-size:14;
    text-wrap-width: 70;
  }
  [zoom=11] {
    text-size:16;
    text-character-spacing: 1;
    text-wrap-width: 80;
  }
  [zoom=12] {
    text-size:18;
    text-character-spacing: 2;
    text-wrap-width: 200;
  }
  [zoom=13] {
    text-size:20;
    text-character-spacing: 4;
    text-wrap-width: 300;
    text-transform: uppercase;
  }
  [zoom=14] {
    text-size:22;
    text-character-spacing: 10;
    text-wrap-width: 500;
    text-transform: uppercase;
  }
  [zoom=15] {
    text-size:26;
    text-character-spacing: 16;
    text-wrap-width: 800;
    text-transform: uppercase;
  }
}

/* ---- Towns ------------------------------------------------------- */

#place::town[type='town'][zoom>=9][zoom<=17] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@town_text;
  text-size:9;
  text-halo-fill:@town_halo;
  text-halo-radius:2;
  text-wrap-width: 50;
  [zoom>=10] {
    text-halo-radius:2;
    text-size: 12;
  }
  [zoom>=11]{
    text-size:14;
  }
  [zoom>=12]{
    text-size:16;
    text-line-spacing: 1;
  }
  [zoom>=13]{
    text-size:18;
    text-transform: uppercase;
    text-character-spacing: 1;
    text-line-spacing: 2;
  }
  [zoom>=14]{
    text-size:20;
    text-character-spacing: 2;
    text-line-spacing: 3;
  }
  [zoom>=15]{
    text-size:22;
    text-character-spacing: 3;
    text-line-spacing: 4;
  }
  [zoom>=16]{
    text-size:24;
    text-character-spacing: 4;
    text-line-spacing: 5;
  }
  [zoom>=17]{
    text-size:26;
    text-character-spacing: 5;
    text-line-spacing: 6;
  }
}

/* ---- Other small places ------------------------------------------ */

#place::small[type='village'][zoom>=13],
#place::small[type='suburb'][zoom>=13],
#place::small[type='hamlet'][zoom>=13],
#place::small[type='neighbourhood'][zoom>=13] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@other_text;
  text-size:10;
  text-halo-fill:@other_halo;
  text-halo-radius:1;
  text-wrap-width: 30;
  [zoom>=14] {
    text-size:14;
    text-character-spacing: 1;
    text-wrap-width: 120;
    text-line-spacing: 1;
  }
  [zoom>=15] {
    text-size:15;
    text-halo-radius: 2;
    text-transform: uppercase;
    text-character-spacing: 1;
    text-wrap-width: 180;
    text-line-spacing: 1;
  }
  [zoom>=16] {
    text-size:16;
    text-character-spacing: 2;
    text-wrap-width: 240;
    text-line-spacing: 2;
  }
  [zoom>=17] {
    text-size:17;
    text-character-spacing: 3;
    text-wrap-width: 320;
    text-line-spacing: 4;
  }
  [zoom>=18] {
    text-size:18;
    text-character-spacing: 4;
    text-line-spacing: 6;
  }
}

#place::small[type='locality'][zoom>=15] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:point;
  text-fill:@locality_text;
  text-size:9;
  text-halo-fill:@locality_halo;
  text-halo-radius:1;
  text-wrap-width: 30;
  [zoom>=16] {
    text-size:10;
    text-wrap-width: 60;
    text-line-spacing: 1;
  }
  [zoom>=17] {
    text-size:11;
    text-wrap-width: 120;
    text-line-spacing: 2;
  }
  [zoom>=18] {
    text-size:12;
    text-character-spacing: 1;
    text-line-spacing: 4;
  }
}

// =====================================================================
// AREA LABELS
// =====================================================================

#area_label {
  // Bring in labels gradually as one zooms in, bases on polygon area
  [zoom>=10][area>102400000],
  [zoom>=11][area>25600000],
  [zoom>=13][area>1600000],
  [zoom>=14][area>320000],
  [zoom>=15][area>80000],
  [zoom>=16][area>20000],
  [zoom>=17][area>5000],
  [zoom>=18][area>=0] {
    text-name: "[name]";
    text-halo-radius: 1.5;
    text-face-name:@sans_italic;
    text-size: 11;
    text-wrap-width:30;
    text-fill: @area_text;
    text-halo-fill: @area_halo;
    // Specific style overrides for different types of areas:
    [type='park'][zoom>=10] {
      text-face-name: @sans_lt_italic;
      text-fill: darken(@park, 70%);
      text-halo-fill: lighten(@park, 10);
    }
    [type='golf_course'][zoom>=10] {
      text-fill: darken(@sports, 70%);
      text-halo-fill: lighten(@sports, 10);
    }
    [type='cemetery'][zoom>=10] {
      text-fill: darken(@cemetery, 70%);
      text-halo-fill: lighten(@cemetery, 10);
    }
    [type='hospital'][zoom>=10] {
      text-fill: darken(@hospital, 70%);
      text-halo-fill: lighten(@hospital, 10);
    }
    [type='college'][zoom>=10],
    [type='school'][zoom>=10],
    [type='university'][zoom>=10] {
      text-fill: darken(@school, 70%);
      text-halo-fill: lighten(@school, 10);
    }
    [type='water'][zoom>=10] {
      text-fill: darken(@water, 70%);
      text-halo-fill: lighten(@water, 10);
    }
  }
  [zoom=15][area>1600000],
  [zoom=16][area>80000],
  [zoom=17][area>20000],
  [zoom=18][area>5000] {
    text-name: "[name]";
    text-size: 13;
    text-wrap-width: 60;
    text-character-spacing: 1;
    text-halo-radius: 2;
  }
  [zoom=16][area>1600000],
  [zoom=17][area>80000],
  [zoom=18][area>20000] {
    text-size: 15;
    text-character-spacing: 2;
    text-wrap-width: 120;
  }
  [zoom>=17][area>1600000],
  [zoom>=18][area>80000] {
    text-size: 20;
    text-character-spacing: 3;
    text-wrap-width: 180;
  }
}

#poi[type='university'][zoom>=15],
#poi[type='hospital'][zoom>=16],
#poi[type='school'][zoom>=17],
#poi[type='library'][zoom>=17] {
  text-name:"[name]";
  text-face-name:@sans;
  text-size:10;
  text-wrap-width:30;
  text-fill: @poi_text;
}

/* ================================================================== */
/* WATERWAY LABELS
/* ================================================================== */

#waterway_label[type='river'][zoom>=13],
#waterway_label[type='canal'][zoom>=15],
#waterway_label[type='stream'][zoom>=17] {
  text-name: '[name]';
  text-face-name: @sans_italic;
  text-fill: darken(@water, 70%);
  text-halo-fill: fadeout(lighten(@water,5%),25%);
  text-halo-radius: 1;
  text-placement: line;
  text-min-distance: 400;
  text-size: 10;
  [type='river'][zoom=15],
  [type='canal'][zoom=17] {
    text-size: 11;
  }
  [type='river'][zoom>=16],
  [type='canal'][zoom=18] {
    text-size: 14;
    text-spacing: 300;
  }
}

/* ================================================================== */
/* ROAD LABELS
/* ================================================================== */

#motorway_label[zoom>=11][zoom<=14][reflen<=8] {
  shield-name: "[ref]";
  shield-size: 9;
  shield-face-name: @sans_bold;
  shield-fill: #fff;
  shield-file: url(img/shield-motorway-1.png);
  [type='motorway'] {
    [reflen=1] { shield-file: url(img/shield-motorway-1.png); }
    [reflen=2] { shield-file: url(img/shield-motorway-2.png); }
    [reflen=3] { shield-file: url(img/shield-motorway-3.png); }
    [reflen=4] { shield-file: url(img/shield-motorway-4.png); }
    [reflen=5] { shield-file: url(img/shield-motorway-5.png); }
    [reflen=6] { shield-file: url(img/shield-motorway-6.png); }
    [reflen=7] { shield-file: url(img/shield-motorway-7.png); }
    [reflen=8] { shield-file: url(img/shield-motorway-8.png); }
  }
  [type='trunk'] {
    [reflen=1] { shield-file: url(img/shield-trunk-1.png); }
    [reflen=2] { shield-file: url(img/shield-trunk-2.png); }
    [reflen=3] { shield-file: url(img/shield-trunk-3.png); }
    [reflen=4] { shield-file: url(img/shield-trunk-4.png); }
    [reflen=5] { shield-file: url(img/shield-trunk-5.png); }
    [reflen=6] { shield-file: url(img/shield-trunk-6.png); }
    [reflen=7] { shield-file: url(img/shield-trunk-7.png); }
    [reflen=8] { shield-file: url(img/shield-trunk-8.png); }
  }
  [zoom=11] { shield-min-distance: 60; } //50
  [zoom=12] { shield-min-distance: 80; } //60
  [zoom=13] { shield-min-distance: 120; } //120
  [zoom=14] { shield-min-distance: 180; }
}

#motorway_label[type='motorway'][zoom>9],
#motorway_label[type='trunk'][zoom>9] {
  text-name:"[name]";
  text-face-name:@sans_bold;
  text-placement:line;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:10;
  [zoom=11] { text-min-distance:70; }
  [zoom=12] { text-min-distance:80; }
  [zoom=13] { text-min-distance:100; }
}

#mainroad_label[type='primary'][zoom>12],
#mainroad_label[type='secondary'][zoom>13],
#mainroad_label[type='tertiary'][zoom>13] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:line;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:11;
}

#minorroad_label[zoom>14] {
  text-name:'[name]';
  text-face-name:@sans;
  text-placement:line;
  text-size:9;
  text-fill:@road_text;
  text-halo-fill:@road_halo;
  text-halo-radius:1;
  text-min-distance:60;
  text-size:11;
}

/* ================================================================== */
/* ONE-WAY ARROWS
/* ================================================================== */

#motorway_label[oneway!=0][zoom>=16],
#mainroad_label[oneway!=0][zoom>=16],
#minorroad_label[oneway!=0][zoom>=16] {
  marker-placement:line;
  marker-max-error: 0.5;
  marker-spacing: 200;
  marker-file: url(img/icon/oneway.svg);
  [oneway=-1] { marker-file: url(img/icon/oneway-reverse.svg); }
  [zoom=16] { marker-transform: "scale(0.5)"; }
  [zoom=17] { marker-transform: "scale(0.75)"; }
}

/* ****************************************************************** */


Add casing (#322)

Add casing (#322)

* Added white casing around hunt area borders.

* Removed extra closing bracket and increased casing to 5

Map { font-directory: url("./fonts"); }

#regions {
      	::case {
      	  line-width: 5;
      	  line-color: #fff;
    	}
    	::fill {
      	  line-width: 1;
      	  line-color: black;
    	}
  [zoom > 10] {
    text-face-name: 'Source Sans Pro Bold';
    text-name:'[name]';
    text-size: 12;
    text-placement:line;
    text-fill: black;
    text-halo-fill: white;
    text-halo-radius:2;
    text-min-distance:50;
    text-dy:-5;
    text-min-padding:1;
    text-max-char-angle-delta : 20;
  }
}

#regions_labels {
  text-face-name: 'Source Sans Pro Bold';
  text-name:'[name]';
  text-size: 12;
  text-halo-fill: white;
  text-halo-radius:2;
  text-placement: point;
  text-wrap-width:30;
  text-avoid-edges:false;
  text-min-distance:50;
}

Map { font-directory: url("./fonts"); }

#regions {
  line-width:1;
  line-color: black;
  [zoom > 10] {
    text-face-name: 'Source Sans Pro Bold';
    text-name:'[name]';
    text-size: 12;
    text-placement:line;
    text-fill: black;
    text-halo-fill: white;
    text-halo-radius:2;
    text-min-distance:50;
    text-dy:-5;
    text-min-padding:1;
    text-max-char-angle-delta : 20;
  }
}

#regions_labels {
  text-face-name: 'Source Sans Pro Bold';
  text-name:'[name]';
  text-size: 12;
  text-halo-fill: white;
  text-halo-radius:2;
  text-placement: point;
  text-wrap-width:30;
  text-avoid-edges:false;
  text-min-distance:50;
}


Remove placeholders

Remove placeholders

@color_physical: #000;
@color_physical_bright: #fff;
@color_water: #000;
@color_administrative_dark: #000;
@color_administrative_bright: #fff;
@color_administrative_medium_low: #000;
@color_administrative_medium_high: #000;
@color_administrative_medium_high2: #000;
@color_transport: #000;
@color_transport_casing: #fff;
@color_transport_inline: #fff;
@color_transport_tunnel: #ccc;
@color_transport_minor: #ccc;
@color_transport_rail: #444;
@color_transport_path: #ededed;
@color_building_outline: #000;
@color_building_outline_special: #00aeef;
@color_airport_runways: #eee;
@color_airport_runways_detail: #f2f2f2;

Map {
  background-color: @color_physical;
}

/**
 * "shore" is a general class for layers with continents, coastlines, lakes,
 * and other kinds of meeting points between water and land.
 */
.shore {
  line-color: @color_physical;
  line-cap: round;
  line-join: round;
}

#country-shapes-110m {
  line-width: 0.25;
  polygon-fill: @color_administrative_bright;
}

#land-shapes-110m,
#country-shapes-50m,
#country-shapes-10m,
{
  line-width: 0.25;
  polygon-fill: @color_physical_bright;
}

.country-boundary-10m {
  ::whiteout {
    [zoom>=7] {
      line-color: @color_administrative_bright;
      line-width: 2;
    }
  }

  [zoom>=6] {
    line-color: @color_administrative_dark;
    line-width: 1.2;
  }

  [zoom>=7] {
    line-width: 1.2;
    line-dasharray: 3,7;
    line-cap: round;
  }
}

#admin1-lines-50m {
  line-width: 0.35;
  line-color: @color_administrative_dark;
}

#admin1-lines-10m {
  [zoom>=6] {
    line-width: 0.6;
    line-color: @color_administrative_dark;
  }

  [zoom>=7] {
    line-width: 1.5;
    line-color: @color_administrative_medium_low;
    line-dasharray: 1,5;
    line-cap: round;
  }

  [zoom>=8] {
    line-width: 2.0;
    line-color: @color_administrative_medium_high;
  }

  [zoom>=9] {
    line-color: @color_administrative_medium_high2;
  }
}

#lakes-110m[zoom<3][scalerank<1],
#lakes-50m[zoom=3][scalerank<2],
#lakes-50m[zoom=4][scalerank<3],
#lakes-50m[zoom=5][scalerank<5],
#lakes-50m[zoom=6],
#lakes-10m,
{
  line-width: 1;
  polygon-fill: @color_physical;
}

#ne-roads {
  ::casing {
    line-color: @color_transport_casing;
    line-opacity: 0.5;
    line-width: 0;

    [zoom=7][scalerank<=7] {
      line-width: 2.25;
    }

    [zoom=8][scalerank<=8] {
      line-width: 3.25;
    }
  }

  line-color: @color_transport;
  line-width: 0;

  [zoom=6][scalerank>=3][scalerank<=6] {
    line-width: 0.1;
  }

  [zoom=7] {
    [scalerank<=6],
    [scalerank<=7][expressway=1],
    [scalerank<=7][type='Major Highway'],
    [scalerank<=7][type='Secondary Highway'],
    {
      line-width: 0.1;
    }

    [scalerank>=3][scalerank<=5] {
      line-width: 1.5;
    }
  }

  [zoom=8] {
    [scalerank<=8] {
      line-width: 0.1;
    }

    [type='Beltway'],
    [scalerank<=8][expressway=1],
    {
      line-width: 1.5;
    }
  }
}

/**
 * Ocean, lake, and river polygons
 */
#water-bodies-low[zoom=8][area>50000000],
#water-bodies-low[zoom=9][area>10000000],
#water-bodies-low[zoom=10][area>2500000],
#water-bodies-med[zoom=11][area> 800000],
#water-bodies-med[zoom=12][area> 500000],
#water-bodies-med[zoom=13][area>  25000],
#water-bodies-high[zoom=14][area> 10000],
#water-bodies-high[zoom>=15]
{
  polygon-fill: @color_water;
}

#land {
  // TODO polygon seams
  polygon-fill: @color_physical_bright;
}

#admin1-lines-osm,
{
  line-width: 2.0;
  line-color: @color_administrative_medium_high2;
  line-dasharray: 1,5;
  line-cap: round;
}

#buildings-med {
  [area>=40000] {
    polygon-pattern-file: url("images/stripe_sm.png");
    line-width: 0.5;
    line-color: @color_building_outline;
  }
}

#buildings-high {
  [zoom>=14] {
    [area>=20000] {
      polygon-pattern-file: url("images/stripe_med.png");
      line-width: 0.5;
      line-color: @color_building_outline;
    }
  }

  [zoom>=16] {
    line-width: 0.5;
  }

  [zoom=15][area>=16000],
  [zoom=16][area>=8000],
  [zoom=17][area>=4000],
  [zoom>=18],
  {
    polygon-pattern-file: url("images/stripe.png");
    line-width: 0.5;
    line-color: @color_building_outline;
  }

  // Stamen HQ fancy candycane striping
  [zoom>=18] {
    [osm_id=45074542],
    [osm_id=224030635], // Seth's house
    {
      polygon-pattern-file: url("images/stripe_color.png");
      line-width: 1.5;
      line-color: @color_building_outline_special;
    }
  }
}

#green-areas-low[zoom=10][area>5000000],
#green-areas-med[zoom=11][area>1000000],
#green-areas-med[zoom=12][area> 500000],
#green-areas-med[zoom=12][area> 200000],
#green-areas-med[zoom=13][area>  75000],
#green-areas-high[zoom=14][area> 10000],
#green-areas-high[zoom>14],
{
  polygon-pattern-alignment: global;
  polygon-pattern-file: url("images/halftone2.png");

  [type='nature_reserve'] {
      polygon-pattern-file: url("images/halftone2-transparent.png");
  }
}

#brown-areas-low[zoom=10][area>5000000],
#brown-areas-med[zoom=11][area>1000000],
#brown-areas-med[zoom=12][area> 500000],
#brown-areas-med[zoom=12][area> 200000],
#brown-areas-med[zoom=13][area>  75000],
#brown-areas-high[zoom=14][area> 10000],
#brown-areas-high[zoom>14],
{
  polygon-pattern-alignment: global;
  polygon-pattern-file: url("images/halftone2.png");
}

#aeroways {
  line-color: @color_airport_runways;
  line-cap: square;
  line-join: miter;

  [zoom>=15] {
    line-color: @color_airport_runways_detail;
  }

  [aeroway='runway'] {
    [zoom=12] {
      line-width: 2;
    }

    [zoom=13] {
      line-width: 4;
    }

    [zoom=14] {
      line-width: 8;
    }

    [zoom=15] {
      line-width: 16;
    }

    [zoom=16] {
      line-width: 32;
    }

    [zoom=17] {
      line-width: 64;
    }

    [zoom>=18] {
      line-width: 128;
    }
  }

  [aeroway='taxiway'] {
    [zoom=13] {
      line-width: 1;
    }

    [zoom=14] {
      line-width: 2;
    }

    [zoom=15] {
      line-width: 4;
    }

    [zoom=16] {
      line-width: 8;
    }

    [zoom=17] {
      line-width: 16;
    }

    [zoom>=18] {
      line-width: 32;
    }
  }
}

.roads {
  ::casing,
  ::outline,
  {
    line-cap: butt;
    line-width: 0;
    line-color: @color_transport_casing;
  }

  line-join: round;
  line-cap: round;
  line-width: 0;
  line-color: @color_transport;

  [is_tunnel='yes']
  {
    [zoom>=14]
    {
      ::casing {
        line-opacity: 0.5;
      }

      ::outline {
        line-opacity: 0.5;
      }
    }

    [zoom>=15]
    {
      line-opacity: 0; // vs. line-width: 0 to override subsequent styling
    }
  }

  [is_link='yes']
  {
    [zoom>=16]
    {
      ::casing {
        line-width: 8;
      }

      line-width: 4;
    }
  }
}

.roads[kind='highway']
{
  [zoom>=9] {
    ::outline {
      line-width: 4.25;
    }

    line-width: 1.5;
  }

  [zoom>=10] {
    ::outline {
      line-width: 6;
    }

    line-width: 2;
  }

  [zoom>=11] {
    line-width: 2.5;
  }

  [zoom>=12] {
    ::outline {
      line-width: 8;
    }

    line-width: 3;

    [is_link='yes'] {
      ::outline {
        line-width: 0;
      }

      line-width: 0.5;
    }
  }

  [zoom>=13] {
    ::outline {
      line-width: 8;
    }

    line-width: 3;

    [is_link='yes'] {
      ::outline {
        line-width: 3;
      }

      line-width: 1;

      [is_bridge='yes'] {
        ::outline {
          line-width: 3;
        }
      }
    }
  }

  [zoom>=14] {
    ::outline {
      line-width: 8;
    }

    line-width: 4;

    [is_bridge='yes'] {
      ::casing {
        line-width: 8;
      }
    }

    [is_link='yes'] {
      ::outline {
        line-width: 6;
      }

      line-width: 2.5;

      [is_bridge='yes'] {
        ::casing {
          line-width: 6;
        }
      }
    }
  }

  [zoom>=15] {
    ::casing {
      line-width: 11;
    }

    line-width: 6;

    [is_link='yes'] {
      ::casing {
        line-width: 6.5;
      }

      line-width: 2.25;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 5;
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-width: 3;
      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 14;
    }

    line-width: 9;

    [is_link='yes'] {
      ::casing {
        line-width: 7;
      }

      line-width: 2.5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 7;
        line-opacity: 0.4;
      }

      line-opacity: 0.7;
      line-color: @color_transport_tunnel;

      [is_link='yes'] {
        ::casing {
          line-color: @color_transport_casing;
        }
      }
    }
  }

  [zoom>=17] {
    ::casing {
      line-width: 24;
    }

    line-width: 15;

    [is_link='yes'] {
      ::casing {
        line-width: 9;
      }

      line-width: 5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 18;
      }

      line-width: 12;

      [is_link='yes'] {
        ::casing {
          line-width: 9;
        }
      }
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 42;
      line-color: @color_transport;
    }

    line-width: 28;
    line-color: @color_transport_inline;

    [is_bridge='yes'] {
      ::casing {
        line-width: 44;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 14;
        line-color: @color_transport;
      }

      line-width: 10;
      line-color: @color_transport_inline;

      [is_bridge='yes'] {
        ::casing {
          line-width: 15;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 22;
      }

      line-width: 18;
    }
  }

  [zoom>=19] {
    ::casing {
      line-width: 49;
      line-color: @color_transport;
    }

    line-width: 35;
    line-color: @color_transport_casing;

    [is_bridge='yes'] {
      ::casing {
        line-width: 51;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 20;
      }

      line-width: 16;
      line-color: @color_transport_casing;

      [is_bridge='yes'] {
        ::casing {
          line-width: 21;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 30;
      }

      line-width: 26;

      [is_link='yes'] {
        ::casing {
          line-width: 13;
        }
      }
    }
  }
}

.roads[kind='major_road']
{
  [zoom<=12] {
    line-color: #000;
  }

  [zoom>=9] {
    line-width: 0.15;
  }

  [zoom>=10] {
    line-width: 0.5;
  }

  [zoom>=11] {
    ::outline {
      line-width: 1.25;
    }

    line-width: 0.7;
  }

  [zoom>=12] {
    ::outline {
      line-width: 5;
    }

    line-width: 1;

    [is_link='yes'] {
      ::outline {
        line-width: 0;
      }

      line-width: 0.5;
    }
  }

  [zoom>=13] {
    line-width: 1.5;
  }

  [zoom>=14] {
    ::outline {
      line-width: 6;
    }

    line-width: 1.9;

    [is_bridge='yes'] {
      ::casing {
        line-width: 6;
      }
    }

    [is_link='yes'] {
      ::outline {
        line-width: 6;
      }

      line-width: 1.9;

      [is_bridge='yes'] {
        ::casing {
          line-width: 6;
        }
      }
    }
  }

  [zoom>=15] {
    ::casing {
      line-width: 8;
    }

    line-width: 5;

    [is_link='yes'] {
      ::casing {
        line-width: 5.5;
      }

      line-width: 2.25;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 5;
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-width: 3;
      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 11;
    }

    line-width: 7;

    [is_link='yes'] {
      ::casing {
        line-width: 7;
      }

      line-width: 2.5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 7;
        line-opacity: 0.4;
      }

      line-opacity: 0.7;
      line-color: @color_transport_tunnel;

      [is_link='yes'] {
        ::casing {
          line-color: @color_transport_casing;
        }
      }
    }
  }

  [zoom>=17] {
    ::casing {
      line-width: 18;
    }

    line-width: 12;

    [is_link='yes'] {
      ::casing {
        line-width: 8;
      }

      line-width: 4;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 18;
      }

      line-width: 12;

      [is_link='yes'] {
        ::casing {
          line-width: 9;
        }
      }
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 22;
      line-color: @color_transport;
    }

    line-width: 18;
    line-color: @color_transport_inline;

    [is_bridge='yes'] {
      ::casing {
        line-width: 24;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 13;
        line-color: @color_transport;
      }

      line-width: 9;
      line-color: @color_transport_inline;

      [is_bridge='yes'] {
        ::casing {
          line-width: 14;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 22;
      }

      line-width: 18;
    }
  }

  [zoom>=19] {
    ::casing {
      line-width: 30;
    }

    line-width: 26;
    line-color: @color_transport_casing;

    [is_bridge='yes'] {
      ::casing {
        line-width: 32;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 17;
      }

      line-width: 13;
      line-color: @color_transport_casing;

      [is_bridge='yes'] {
        ::casing {
          line-width: 18;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 30;
      }

      line-width: 26;

      [is_link='yes'] {
        ::casing {
          line-width: 13;
        }
      }
    }
  }
}

.roads[kind='minor_road']
{
  [zoom<=14] {
    line-color: #999;
  }

  [zoom>=16] {
    line-color: @color_transport_minor;
  }

  [zoom>=10] {
    line-width: 0.2;
  }

  [zoom>=13] {
    line-width: 0.4;
  }

  [zoom>=14] {
    line-width: 0.8;
  }

  [zoom>=15] {
    line-width: 1.5;

    [is_tunnel='yes'] {
      ::casing {
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 7;
    }

    line-width: 4;
    line-color: @color_transport;
  }

  [zoom>=17] {
    ::casing {
      line-width: 9;
    }

    line-width: 7;
  }

  [zoom>=18] {
    ::casing {
      line-width: 17;
      line-color: @color_transport;
    }

    line-width: 13;
    line-color: @color_transport_casing;
  }

  [zoom>=19] {
    ::casing {
      line-width: 20;
    }

    line-width: 16;
  }
}

.roads[kind='rail']
{
  ::casing,
  ::outline,
  {
    line-color: @color_transport_rail;
  }

  line-color: @color_transport_rail;

  [zoom>=14] {
    ::casing {
      line-width: 3;
      line-dasharray: 1,3;
    }

    line-width: 1;
  }

  [zoom>=16] {
    ::casing {
      line-width: 5;
      line-dasharray: 1,4;
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 6;
      line-dasharray: 2,6;
    }

    line-width: 2;
  }

  [zoom>=19] {
    ::casing {
      line-width: 9;
      line-dasharray: 4,7;
    }

    line-width: 4;
  }
}

.roads[highway='service']
{
  [zoom>=15]
  {
    line-width: 1.5;
  }

  [zoom>=16] {
    ::casing {
      line-width: 4;
    }

    line-width: 2;
  }

  [zoom>=17] {
    ::casing {
      line-width: 6;
    }

    line-width: 4;
  }
}

.roads[kind='path']
{
  ::casing {
    line-color: @color_transport_path;
  }

  line-color: @color_transport_casing;

  [zoom>=15] {
    ::casing {
      line-width: 4;
    }

    line-width: 1.5;
    line-cap: butt;
  }

  [zoom>=16] {
    ::casing {
      line-width: 5;
    }

    line-width: 2;
  }

  [zoom>=17] {
    line-width: 3;
  }

  [zoom>=19] {
    line-width: 4;
  }
}

@color_physical: #000;
@color_physical_bright: #fff;
@color_water: #000;
@color_administrative_dark: #000;
@color_administrative_bright: #fff;
@color_administrative_medium_low: #000;
@color_administrative_medium_high: #000;
@color_administrative_medium_high2: #000;
@color_transport: #000;
@color_transport_casing: #fff;
@color_transport_inline: #fff;
@color_transport_tunnel: #ccc;
@color_transport_minor: #ccc;
@color_transport_rail: #444;
@color_transport_path: #ededed;
@color_building_outline: #000;
@color_building_outline_special: #00aeef;
@color_airport_runways: #eee;
@color_airport_runways_detail: #f2f2f2;

@major_road: steelblue;
@minor_road_high_zoom: steelblue;

Map {
  background-color: @color_physical;
}

/**
 * "shore" is a general class for layers with continents, coastlines, lakes,
 * and other kinds of meeting points between water and land.
 */
.shore {
  line-color: @color_physical;
  line-cap: round;
  line-join: round;
}

#country-shapes-110m {
  line-width: 0.25;
  polygon-fill: @color_administrative_bright;
}

#land-shapes-110m,
#country-shapes-50m,
#country-shapes-10m,
{
  line-width: 0.25;
  polygon-fill: @color_physical_bright;
}

.country-boundary-10m {
  ::whiteout {
    [zoom>=7] {
      line-color: @color_administrative_bright;
      line-width: 2;
    }
  }

  [zoom>=6] {
    line-color: @color_administrative_dark;
    line-width: 1.2;
  }

  [zoom>=7] {
    line-width: 1.2;
    line-dasharray: 3,7;
    line-cap: round;
  }
}

#admin1-lines-50m {
  line-width: 0.35;
  line-color: @color_administrative_dark;
}

#admin1-lines-10m {
  [zoom>=6] {
    line-width: 0.6;
    line-color: @color_administrative_dark;
  }

  [zoom>=7] {
    line-width: 1.5;
    line-color: @color_administrative_medium_low;
    line-dasharray: 1,5;
    line-cap: round;
  }

  [zoom>=8] {
    line-width: 2.0;
    line-color: @color_administrative_medium_high;
  }

  [zoom>=9] {
    line-color: @color_administrative_medium_high2;
  }
}

#lakes-110m[zoom<3][scalerank<1],
#lakes-50m[zoom=3][scalerank<2],
#lakes-50m[zoom=4][scalerank<3],
#lakes-50m[zoom=5][scalerank<5],
#lakes-50m[zoom=6],
#lakes-10m,
{
  line-width: 1;
  polygon-fill: @color_physical;
}

#ne-roads {
  ::casing {
    line-color: @color_transport_casing;
    line-opacity: 0.5;
    line-width: 0;

    [zoom=7][scalerank<=7] {
      line-width: 2.25;
    }

    [zoom=8][scalerank<=8] {
      line-width: 3.25;
    }
  }

  line-color: @color_transport;
  line-width: 0;

  [zoom=6][scalerank>=3][scalerank<=6] {
    line-width: 0.1;
  }

  [zoom=7] {
    [scalerank<=6],
    [scalerank<=7][expressway=1],
    [scalerank<=7][type='Major Highway'],
    [scalerank<=7][type='Secondary Highway'],
    {
      line-width: 0.1;
    }

    [scalerank>=3][scalerank<=5] {
      line-width: 1.5;
    }
  }

  [zoom=8] {
    [scalerank<=8] {
      line-width: 0.1;
    }

    [type='Beltway'],
    [scalerank<=8][expressway=1],
    {
      line-width: 1.5;
    }
  }
}

/**
 * Ocean, lake, and river polygons
 */
#water-bodies-low[zoom=8][area>50000000],
#water-bodies-low[zoom=9][area>10000000],
#water-bodies-low[zoom=10][area>2500000],
#water-bodies-med[zoom=11][area> 800000],
#water-bodies-med[zoom=12][area> 500000],
#water-bodies-med[zoom=13][area>  25000],
#water-bodies-high[zoom=14][area> 10000],
#water-bodies-high[zoom>=15]
{
  polygon-fill: @color_water;
}

#land {
  // TODO polygon seams
  polygon-fill: @color_physical_bright;
}

#admin1-lines-osm,
{
  line-width: 2.0;
  line-color: @color_administrative_medium_high2;
  line-dasharray: 1,5;
  line-cap: round;
}

#buildings-med {
  [area>=40000] {
    polygon-pattern-file: url("images/stripe_sm.png");
    line-width: 0.5;
    line-color: @color_building_outline;
  }
}

#buildings-high {
  [zoom>=14] {
    [area>=20000] {
      polygon-pattern-file: url("images/stripe_med.png");
      line-width: 0.5;
      line-color: @color_building_outline;
    }
  }

  [zoom>=16] {
    line-width: 0.5;
  }

  [zoom=15][area>=16000],
  [zoom=16][area>=8000],
  [zoom=17][area>=4000],
  [zoom>=18],
  {
    polygon-pattern-file: url("images/stripe.png");
    line-width: 0.5;
    line-color: @color_building_outline;
  }

  // Stamen HQ fancy candycane striping
  [zoom>=18] {
    [osm_id=45074542],
    [osm_id=224030635], // Seth's house
    {
      polygon-pattern-file: url("images/stripe_color.png");
      line-width: 1.5;
      line-color: @color_building_outline_special;
    }
  }
}

#green-areas-low[zoom=10][area>5000000],
#green-areas-med[zoom=11][area>1000000],
#green-areas-med[zoom=12][area> 500000],
#green-areas-med[zoom=12][area> 200000],
#green-areas-med[zoom=13][area>  75000],
#green-areas-high[zoom=14][area> 10000],
#green-areas-high[zoom>14],
{
  polygon-pattern-alignment: global;
  polygon-pattern-file: url("images/halftone2.png");

  [type='nature_reserve'] {
      polygon-pattern-file: url("images/halftone2-transparent.png");
  }
}

#brown-areas-low[zoom=10][area>5000000],
#brown-areas-med[zoom=11][area>1000000],
#brown-areas-med[zoom=12][area> 500000],
#brown-areas-med[zoom=12][area> 200000],
#brown-areas-med[zoom=13][area>  75000],
#brown-areas-high[zoom=14][area> 10000],
#brown-areas-high[zoom>14],
{
  polygon-pattern-alignment: global;
  polygon-pattern-file: url("images/halftone2.png");
}

#aeroways {
  line-color: @color_airport_runways;
  line-cap: square;
  line-join: miter;

  [zoom>=15] {
    line-color: @color_airport_runways_detail;
  }

  [aeroway='runway'] {
    [zoom=12] {
      line-width: 2;
    }

    [zoom=13] {
      line-width: 4;
    }

    [zoom=14] {
      line-width: 8;
    }

    [zoom=15] {
      line-width: 16;
    }

    [zoom=16] {
      line-width: 32;
    }

    [zoom=17] {
      line-width: 64;
    }

    [zoom>=18] {
      line-width: 128;
    }
  }

  [aeroway='taxiway'] {
    [zoom=13] {
      line-width: 1;
    }

    [zoom=14] {
      line-width: 2;
    }

    [zoom=15] {
      line-width: 4;
    }

    [zoom=16] {
      line-width: 8;
    }

    [zoom=17] {
      line-width: 16;
    }

    [zoom>=18] {
      line-width: 32;
    }
  }
}

.roads {
  ::casing,
  ::outline,
  {
    line-cap: butt;
    line-width: 0;
    line-color: @color_transport_casing;
  }

  line-join: round;
  line-cap: round;
  line-width: 0;
  line-color: @color_transport;

  [is_tunnel='yes']
  {
    [zoom>=14]
    {
      ::casing {
        line-opacity: 0.5;
      }

      ::outline {
        line-opacity: 0.5;
      }
    }

    [zoom>=15]
    {
      line-opacity: 0; // vs. line-width: 0 to override subsequent styling
    }
  }

  [is_link='yes']
  {
    [zoom>=16]
    {
      ::casing {
        line-width: 8;
      }

      line-width: 4;
    }
  }
}

.roads[kind='highway']
{
  [zoom>=9] {
    ::outline {
      line-width: 4.25;
    }

    line-width: 1.5;
  }

  [zoom>=10] {
    ::outline {
      line-width: 6;
    }

    line-width: 2;
  }

  [zoom>=11] {
    line-width: 2.5;
  }

  [zoom>=12] {
    ::outline {
      line-width: 8;
    }

    line-width: 3;

    [is_link='yes'] {
      ::outline {
        line-width: 0;
      }

      line-width: 0.5;
    }
  }

  [zoom>=13] {
    ::outline {
      line-width: 8;
    }

    line-width: 3;

    [is_link='yes'] {
      ::outline {
        line-width: 3;
      }

      line-width: 1;

      [is_bridge='yes'] {
        ::outline {
          line-width: 3;
        }
      }
    }
  }

  [zoom>=14] {
    ::outline {
      line-width: 8;
    }

    line-width: 4;

    [is_bridge='yes'] {
      ::casing {
        line-width: 8;
      }
    }

    [is_link='yes'] {
      ::outline {
        line-width: 6;
      }

      line-width: 2.5;

      [is_bridge='yes'] {
        ::casing {
          line-width: 6;
        }
      }
    }
  }

  [zoom>=15] {
    ::casing {
      line-width: 11;
    }

    line-width: 6;

    [is_link='yes'] {
      ::casing {
        line-width: 6.5;
      }

      line-width: 2.25;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 5;
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-width: 3;
      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 14;
    }

    line-width: 9;

    [is_link='yes'] {
      ::casing {
        line-width: 7;
      }

      line-width: 2.5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 7;
        line-opacity: 0.4;
      }

      line-opacity: 0.7;
      line-color: @color_transport_tunnel;

      [is_link='yes'] {
        ::casing {
          line-color: @color_transport_casing;
        }
      }
    }
  }

  [zoom>=17] {
    ::casing {
      line-width: 24;
    }

    line-width: 15;

    [is_link='yes'] {
      ::casing {
        line-width: 9;
      }

      line-width: 5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 18;
      }

      line-width: 12;

      [is_link='yes'] {
        ::casing {
          line-width: 9;
        }
      }
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 42;
      line-color: @color_transport;
    }

    line-width: 28;
    line-color: @color_transport_inline;

    [is_bridge='yes'] {
      ::casing {
        line-width: 44;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 14;
        line-color: @color_transport;
      }

      line-width: 10;
      line-color: @color_transport_inline;

      [is_bridge='yes'] {
        ::casing {
          line-width: 15;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 22;
      }

      line-width: 18;
    }
  }

  [zoom>=19] {
    ::casing {
      line-width: 49;
      line-color: @color_transport;
    }

    line-width: 35;
    line-color: @color_transport_casing;

    [is_bridge='yes'] {
      ::casing {
        line-width: 51;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 20;
      }

      line-width: 16;
      line-color: @color_transport_casing;

      [is_bridge='yes'] {
        ::casing {
          line-width: 21;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 30;
      }

      line-width: 26;

      [is_link='yes'] {
        ::casing {
          line-width: 13;
        }
      }
    }
  }
}

.roads[kind='major_road']
{
  [zoom<=12] {
    line-color: #000;
  }

  [zoom>=9] {
    line-width: 0.15;
  }

  [zoom>=10] {
    line-width: 0.5;
  }

  [zoom>=11] {
    ::outline {
      line-width: 1.25;
    }

    line-width: 0.7;
  }

  [zoom>=12] {
    ::outline {
      line-width: 5;
    }

    line-width: 1;

    [is_link='yes'] {
      ::outline {
        line-width: 0;
      }

      line-width: 0.5;
    }
  }

  [zoom>=13] {
    line-width: 1.5;
  }

  [zoom>=14] {
    ::outline {
      line-width: 6;
    }

    line-width: 1.9;

    [is_bridge='yes'] {
      ::casing {
        line-width: 6;
      }
    }

    [is_link='yes'] {
      ::outline {
        line-width: 6;
      }

      line-width: 1.9;

      [is_bridge='yes'] {
        ::casing {
          line-width: 6;
        }
      }
    }
  }

  [zoom>=15] {
    ::casing {
      line-width: 8;
    }

    line-width: 5;

    [is_link='yes'] {
      ::casing {
        line-width: 5.5;
      }

      line-width: 2.25;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 5;
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-width: 3;
      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 11;
    }

    line-width: 7;

    [is_link='yes'] {
      ::casing {
        line-width: 7;
      }

      line-width: 2.5;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 7;
        line-opacity: 0.4;
      }

      line-opacity: 0.7;
      line-color: @color_transport_tunnel;

      [is_link='yes'] {
        ::casing {
          line-color: @color_transport_casing;
        }
      }
    }
  }

  [zoom>=17] {
    ::casing {
      line-width: 18;
    }

    line-width: 12;

    [is_link='yes'] {
      ::casing {
        line-width: 8;
      }

      line-width: 4;
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 18;
      }

      line-width: 12;

      [is_link='yes'] {
        ::casing {
          line-width: 9;
        }
      }
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 22;
      line-color: @color_transport;
    }

    line-width: 18;
    line-color: @color_transport_inline;

    [is_bridge='yes'] {
      ::casing {
        line-width: 24;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 13;
        line-color: @color_transport;
      }

      line-width: 9;
      line-color: @color_transport_inline;

      [is_bridge='yes'] {
        ::casing {
          line-width: 14;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 22;
      }

      line-width: 18;
    }
  }

  [zoom>=19] {
    ::casing {
      line-width: 30;
    }

    line-width: 26;
    line-color: @color_transport_casing;

    [is_bridge='yes'] {
      ::casing {
        line-width: 32;
      }
    }

    [is_link='yes'] {
      ::casing {
        line-width: 17;
      }

      line-width: 13;
      line-color: @color_transport_casing;

      [is_bridge='yes'] {
        ::casing {
          line-width: 18;
        }
      }
    }

    [is_tunnel='yes'] {
      ::casing {
        line-width: 30;
      }

      line-width: 26;

      [is_link='yes'] {
        ::casing {
          line-width: 13;
        }
      }
    }
  }
}

.roads[kind='minor_road']
{
  [zoom<=14] {
    line-color: #999;
  }

  [zoom>=16] {
    line-color: @color_transport_minor;
  }

  [zoom>=10] {
    line-width: 0.2;
  }

  [zoom>=13] {
    line-width: 0.4;
  }

  [zoom>=14] {
    line-width: 0.8;
  }

  [zoom>=15] {
    line-width: 1.5;

    [is_tunnel='yes'] {
      ::casing {
        line-opacity: 0.7;
        line-color: @color_transport_tunnel;
      }

      line-opacity: 0.5;
    }
  }

  [zoom>=16] {
    ::casing {
      line-width: 7;
    }

    line-width: 4;
    line-color: @color_transport;
  }

  [zoom>=17] {
    ::casing {
      line-width: 9;
    }

    line-width: 7;
  }

  [zoom>=18] {
    ::casing {
      line-width: 17;
      line-color: @color_transport;
    }

    line-width: 13;
    line-color: @color_transport_casing;
  }

  [zoom>=19] {
    ::casing {
      line-width: 20;
    }

    line-width: 16;
  }
}

.roads[kind='rail']
{
  ::casing,
  ::outline,
  {
    line-color: @color_transport_rail;
  }

  line-color: @color_transport_rail;

  [zoom>=14] {
    ::casing {
      line-width: 3;
      line-dasharray: 1,3;
    }

    line-width: 1;
  }

  [zoom>=16] {
    ::casing {
      line-width: 5;
      line-dasharray: 1,4;
    }
  }

  [zoom>=18] {
    ::casing {
      line-width: 6;
      line-dasharray: 2,6;
    }

    line-width: 2;
  }

  [zoom>=19] {
    ::casing {
      line-width: 9;
      line-dasharray: 4,7;
    }

    line-width: 4;
  }
}

.roads[highway='service']
{
  [zoom>=15]
  {
    line-width: 1.5;
  }

  [zoom>=16] {
    ::casing {
      line-width: 4;
    }

    line-width: 2;
  }

  [zoom>=17] {
    ::casing {
      line-width: 6;
    }

    line-width: 4;
  }
}

.roads[kind='path']
{
  ::casing {
    line-color: @color_transport_path;
  }

  line-color: @color_transport_casing;

  [zoom>=15] {
    ::casing {
      line-width: 4;
    }

    line-width: 1.5;
    line-cap: butt;
  }

  [zoom>=16] {
    ::casing {
      line-width: 5;
    }

    line-width: 2;
  }

  [zoom>=17] {
    line-width: 3;
  }

  [zoom>=19] {
    line-width: 4;
  }
}


Update palette.mss

Update palette.mss


updated with gh-pages

updated with gh-pages

Map { font-directory: url("fonts/"); }

#indiranagar::places [place='suburb'] {
  text-name: '[name:kn]';
  text-face-name: 'Lohit Kannada Regular';
  text-character-spacing: 05;
  text-size: 25;
  text-halo-radius: 2;
  }
#indiranagar::places [place='neighbourhood'][zoom>=16] {
  text-name: '[name:kn]';
  text-opacity: 0.6;
  text-face-name: 'Lohit Kannada Regular';
  text-size: 18;
  text-halo-radius: 2;
  }

#indiranagar{
  text-name: '[name:kn]';
  text-face-name: 'Kedage Normal';
  text-placement: line;
  text-dy: 5;
  }

#indiranagar::bus [highway='bus_stop'] [zoom>=16] {
  text-name: '[name:kn]';
  marker-file: url('icon/bus-12.svg');
  marker-width: 20;
  marker-allow-overlap: true;
  text-face-name: 'Lohit Kannada Regular';
  text-size: 10;
  text-dy:20;
  }

error: pathspec 'kannada.mss' did not match any file(s) known to git


nettoyage (mineur)

nettoyage (mineur)

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bchartier/style-osm-geopicardie.git/'


Changes with buildings appearance

Changes with buildings appearance

Made all buildings to appear from zoom level 14

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ThinkDigital/osm-carto.git/'


Removed symbol gate2.png

Removed symbol gate2.png


manque un espace sur le nom des fonts dans mon paquet


grammar

grammar

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/MapleCSS/MapleCSS.git/'


Fixed menu on mobile

Fixed menu on mobile

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/dtsepelev/rokhlinart.git/'


Changement de couleur des autoroutes

Changement de couleur des autoroutes


finised tyleing zoom level 9, will continue wit zoom level 10


commenting out test values

commenting out test values


Full scale change in admin.mss file

Full scale change in admin.mss file

Removed all admin levels and left only admin level 2
Also changed admin level line color and size


adds CartoDB CSS to repo

adds CartoDB CSS to repo

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/civil-services/artsforla-asset-map.git/'


add map style

add map style

#Oz_event_set {
  /* don't draw outlines around the marker dots */
  marker-line-width: 0;

  /* just draw all markers, even if overlapping */
  marker-ignore-placement: true;
  marker-allow-overlap: true;

  /* use Mw for marker width */
  marker-width: [Mw]*3;
  //marker-width: [depth];

  marker-opacity: 0.2;

  marker-fill: #d90000;

/*
  [zoom >= 15] { marker-width: 3.16228; }
  [zoom >= 16] { marker-width: 5; }
  [zoom >= 17] { marker-width: 7.90569; }
  [zoom >= 18] { marker-width: 12.5; }
  [zoom >= 19] { marker-width: 19.7642; }
  [zoom >= 20] { marker-width: 31.25; }
  [zoom >= 21] { marker-width: 49.4106; }
  [zoom >= 22] { marker-width: 78.125; }

*/
}

error: pathspec 'style/ausquakes.mss' did not match any file(s) known to git


split up multiple selectors into separate styles

/**

  Multiple selectors have to be split up into separate styles

  Final object model should be:

  <Style>
    <Rule>
      <Filter>[NAME] = "United States"</Filter>
      <LineSymbolizer color="#111111" opacity="0.5" />
    </Rule>
  </Style>

  <Style>
    <Rule>
      <LineSymbolizer color="#111111" opacity="0.5" />
    </Rule>
  </Style>

*/

#world[NAME = "United States"],
.otherlayer {
  line-opacity: 0.5;
  line-color: #111;
}

error: pathspec 'test/mess/multiple_selectors.mss' did not match any file(s) known to git


Removed admin levels 0,1,2,3 and 4

Removed admin levels 0,1,2,3 and 4


Finised styling all roads on zoom level 15


Finished styling zoom level 17

Finished styling zoom level 17

Also fixed feature = 'highway_road' being too large compared with other
roads on zoom level 17 and 18


Removed self-created world outline shadow


Improved catalog titles position

Improved catalog titles position


Aggregation test

Aggregation test

/**

 Negation

 <Style name="#world">
    <Rule>
        <PolygonSymbolizer fill="#000000" opacity="0.5" />
    </Rule>
 </Style>

*/

#world {
  polygon-fill: #000;
}

#world {
  polygon-opacity: 0.5;
}

error: pathspec 'test/mess/aggregation.mss' did not match any file(s) known to git


Removed zoom events on mobile

Removed zoom events on mobile


Commented-out low-zoom park/cem. patters

git-svn-id: 52b2958d923a603b3f48d22aabe6b5bf40478d2a@487 dbea3d40-3153-0410-b551-57805770c6e6

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/glampr/Cascadenik.git/'


Change road_label_name style (add residential and change levels)


add test for #218

add test for #218

#country-label {
  [one = 2]
    marker-width:1;
  }
}

error: pathspec 'test/errorhandling/issue_218.mss' did not match any file(s) known to git


Disabled auto-scrolling in gallery for mobile devices


Finished styling all roads in zoom level 14

Made all roads taged by "highway_road" to have same design as
"highway_residential".
Made feature = 'highway_pedestrian' only to appear from zoom level 15.


Add Style.mss.

Add Style.mss.

/**
 * Hoa
 *
 *
 * @license
 *
 * New BSD License
 *
 * Copyright © 2007-2013, Ivan Enderlin. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *     * Redistributions of source code must retain the above copyright
 *       notice, this list of conditions and the following disclaimer.
 *     * Redistributions in binary form must reproduce the above copyright
 *       notice, this list of conditions and the following disclaimer in the
 *       documentation and/or other materials provided with the distribution.
 *     * Neither the name of the Hoa nor the names of its contributors may be
 *       used to endorse or promote products derived from this software without
 *       specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

@text: "DejaVu Sans Book";
@dark-orange: #764600;
@orange: #de8300;
@black: #000;

@water-border: #83bae1;
@water: #d1ecff;

Map {
    background-color: transparent;
}

#countries {

    ::outline {
        line-color: @orange;
        line-width: 1;
        line-join: round;
    }

    polygon-fill: #f7efe4;
}

#country-name {
    text-face-name: @text;
    text-fill: @black;
    text-size: 11;
    text-transform: uppercase;
    text-halo-fill: rgba(255, 255, 255, .5);
    text-halo-radius: 1;
    text-line-spacing: 1;
    text-wrap-width: 20;
    text-name: " ";
}

    #country-name[zoom > 3] {
        text-fill: @dark-orange;
        text-name: "[ABBREV]";
    }

    #country-name[zoom > 4] {
        text-fill: @black;
        text-name: "[NAME]";
    }

#cities[WORLDCITY = 1][zoom > 4] {
    text-name: "[NAME]";
    text-face-name: @text;
    text-fill: @black;
    text-size: 8;
    text-halo-fill: rgba(255, 255, 255, .5);
    text-halo-radius: 1;
}

#lakes[zoom > 4] {
    line-color: @water-border;
    line-width:0.5;
    polygon-opacity:1;
    polygon-fill: @water;
}

#rivers[zoom > 5] {
    line-width: 1;
    line-color: #b6cfe1;
}

error: pathspec 'Map/Style.mss' did not match any file(s) known to git


Style for the analysis grid

Style for the analysis grid

.quadrat {
  line-color:yellow;
  line-width:0.5;
  polygon-opacity:0;
}

error: pathspec 'cartocss/quadrat_style.mss' did not match any file(s) known to git


Finished styling all roads in zoom level 12

Cleaned roads.mss code readability on zoom level 11
Made motorway road, primary road, secondary road widths sizes to be
general variables
in the beginning of the roads.mss file.
Made trunk roads to look on zoom level 11 same as motorway roads


Replace blue water color by darkish grey

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/egore/osmgress.git/'


Finished styling all roads in zoom level 13

Also made highway=trunk roads to be with same width as highway=motorway on
all zoom levels
Made residential roads to be quite small width in zoom level 13
Made highway_steps to appear only from zoom level 17
Made highway_track to appear only from zoom level 16
Made highway_service to appear only from zoom level 14


add currently failing test for #290

add currently failing test for #290

#world[zoomy > 2] {
  polygon-fill:#f00;
}

error: pathspec 'test/rendering-mss/zoom-like-field-name.mss' did not match any file(s) known to git


Modification de l'apparence des autoroutes à petite échelle


Adding default tilemill stylesheet to testing dir

Map {
  background-color: #fff;
}

#world {
  polygon-fill: #eee;
  line-color: #ccc;
  line-width: 0.5;
}

error: pathspec 'test/mess/tilemill_default.mss' did not match any file(s) known to git


Added some extra handling for tertiary roads at zoom levels 14 and 15

git-svn-id: 52b2958d923a603b3f48d22aabe6b5bf40478d2a@437 dbea3d40-3153-0410-b551-57805770c6e6


Affichage des tronçons de métro aérien (fix #4)


Points of interest

Points of interest

Removed majority points of interest from amenity-points.mss file


Parking symbol apperas only from zoom level =>17


manque un espace sur le nom des fonts dans mon paquet


Landcover style change

Landcover style change

Changed all types of green places also sport palces on map to use same color #cfe29f
Changed school area style
Changed commercial area style to be same as school area style
Modifyed military area aper only on zoom level =>12


Finised styling all roads on zoom level 18

Will start styling all roads from big zoom levels and will continue until smallest zoom
levels when the roads are not anymore displayed


Create style.mss

Create style.mss

Map {

}

#routeswithrefs {
  line-width:2;
  line-color:#f00;
  line-join:round;
  line-cap:round;
  line-smooth:0;
  text-name:[routes_ref];
  text-face-name: "DejaVu Sans Bold";
  text-dy: -8;
  text-allow-overlap:true;
  text-fill: red;

  text-placement: line;
  text-placement-type: simple;
  text-ratio: 100;
  text-label-position-tolerance: 5;
  text-halo-radius: 1;

}

#terminalsexport {

    marker-placement: point;
  	marker-fill: white;
  	marker-line-width:2;
    text-name:[long_text];
    text-face-name: "DejaVu Sans Bold";

  	text-fill: darkred;
    text-allow-overlap:false;
    text-placement-type: simple;

  	text-ratio: 100;
    text-placements: "E,W,NE,SE,NW,SW,16,14,12";
    text-dy: 3;
  	text-dx: 3;

    text-halo-radius: 1;

  }

#planetosmpointwherer {
  marker-width:6;
  marker-fill:#f45;
  marker-line-color:#813;

  marker-allow-overlap:true;
  text-name:[name];
  text-face-name: "DejaVu Sans Oblique";
  text-placement-type: simple;
  text-allow-overlap:true;
  text-dy: -3;
  text-dx: 3;
  text-halo-radius: 1;
  text-ratio:7;
  text-wrap-width:15;

  text-placements: "E,W,NE,SE,NW,SW,16,14,12";

}

error: pathspec 'style.mss' did not match any file(s) known to git


Change track name rendering

Change track name rendering

https://github.com/gravitystorm/openstreetmap-carto/pull/748


Changes in landcover.mss file

Changes in landcover.mss file

Changed color of cemetery.
Made cemetery,farmyard, landuse retail, power station, school area and
pitch to appear rather on higher zoom levels than low zoom levels.


Error correction with zoom level 9 roads


Minor code fix

Minor code fix


retirer admin de bright

retirer admin de bright


Adding filter fallback example

Adding filter fallback example

/**

  An example of how fallbacks should work.

  Final object model should be:

  <Style>
    <Rule>
      <Filter>[NAME] = "United States"</Filter>
      <LineSymbolizer color="#000000" opacity="0.5" />
    </Rule>
    <Rule>
      <ElseFilter />
      <LineSymbolizer color="#111111" opacity="0.5" />
    </Rule>
  </Style>

*/

#world {
  line-opacity: 0.5;
  line-color: #111;
}

#world[NAME = "United States"] {
  line-color: #000;
}

error: pathspec 'test/mess/filter_fallback.mss' did not match any file(s) known to git


frontières

frontières

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bchartier/style-osm-geopicardie.git/'


Changed river witdh in zoom level 9

Changed river witdh in zoom level 9

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ThinkDigital/osm-carto.git/'


Modified file amenity-points.mss

Modified file amenity-points.mss

Took out unnessesary icons and texts from amenity-points.mss


Changed the colors

Changed the colors

Changed color of all road casing from #ffffff; to #D0CCC7
Also changed big higways color to #ffffff;


made river default width smaller

made river default width smaller


Create tram.mss

Create tram.mss

Map {

}

#routeswithrefs {
  line-width:2;
  line-color:#f00;
  line-join:round;
  line-cap:round;
  line-smooth:0;
  text-name:[routes_ref];
  text-face-name: "DejaVu Sans Bold";
  text-dy: -8;
  text-allow-overlap:true;
  text-fill: red;

  text-placement: line;
  text-placement-type: simple;
  text-ratio: 100;
  text-label-position-tolerance: 5;
  text-halo-radius: 1;
}

#terminalsexport {

    marker-placement: point;
    marker-fill: white;
    marker-line-width:2;
    text-name:[long_text];
    text-face-name: "DejaVu Sans Bold";

    text-fill: darkred;
    text-allow-overlap:false;
    text-placement-type: simple;

    text-ratio: 100;
    text-placements: "E,W,NE,SE,NW,SW,16,14,12";
    text-dy: 3;
    text-dx: 6;

    text-halo-radius: 1;
  }

#planetosmpointwherer {
  marker-width:6;
  marker-fill:#f45;
  marker-line-color:#813;

  marker-allow-overlap:true;
  text-name:[name];
  text-face-name: "DejaVu Sans Oblique";
  text-placement-type: simple;
  text-allow-overlap:false;
  text-dy: -3;
  text-dx: 3;
  text-halo-radius: 1;
  text-ratio:7;
  text-wrap-width:15;

  text-placements: "E,W,NE,SE,NW,SW,16,14,12";
}

error: pathspec 'styles/mss/tram.mss' did not match any file(s) known to git


Réactivation du motif pour les marais

Réactivation du motif pour les marais


ScaleRank devient scalerank

ScaleRank devient scalerank


Color changes

Color changes

Changed color of natural places, industrial area, parking area, sand,
school area and school buildings.


Re-factor service widths

Re-factor service widths

i

Re-factor service widths

https://github.com/gravitystorm/openstreetmap-carto/pull/649

Commented out service roads .access::fill because it didn't work correctly


Added coastline shadow

Added coastline shadow


Finised styling all roads on zoom level 15


Update of the place::locality style

Update of the place::locality style


applique 5ade5405b828d1e6249b43ebebb9f822aae151aa


An alternate style for basemap linework

An alternate style for basemap linework

Map {
  background-color: black;
}

.lines::glow {
  line-color:blue;
  line-opacity: 0.001;
  line-width: 3;
}

.lines {
  line-color: blue;
  line-opacity: 0.05;
  line-width: 0.5
}

error: pathspec 'tilemill/line_style_dark.mss' did not match any file(s) known to git


Finised styling all roads on zoom level 16


Close all files before exporting test folder

Speeds up processing and fixes #119

function Run() {
    Self._property:libmei = libmei4;
    Self._property:sibmei = sibmei4;
    sibmei4._property:libmei = libmei;
    sibmei.InitGlobals(CreateSparseArray('sibmei4_extension_test'));

    plugins = Sibelius.Plugins;

    if (not (plugins.Contains('Test')))
    {
        Sibelius.MessageBox('Please install the Test plugin!');
        ExitPlugin();
    }

    // In an attempt to minimize the chance of Sibelius crashing randomly, close
    // all scores before running the tests.
    if (not Sibelius.YesNoMessageBox(
        'All open scores will be closed without saving before running the tests. Continue?'
    ))
    {
        ExitPlugin();
    }

    Sibelius.CloseAllWindows(false);
    Sibelius.New();

    Self._property:pluginDir = GetPluginFolder('sibmei4.plg');
    Self._property:tempDir = CreateNewTempDir();
    Self._property:_SibTestFileDirectory = pluginDir & 'sibmeiTestSibs'  & Sibelius.PathSeparator;

    suite = Test.Suite('Sibelius MEI Exporter', Self, sibmei);

    suite
        .AddModule('TestExportConverters')
        .AddModule('TestLibmei')
        .AddModule('TestExportGenerators')
        .AddModule('TestUtilities')
    ;

    suite.Run();

    Sibelius.CloseAllWindows(false);

    sibmei4_batch_sib.ConvertFolder(
        Sibelius.GetFolder(_SibTestFileDirectory),
        CreateSparseArray('sibmei4_extension_test')
    );

    // We do not 'clean up' with Sibelius.CloseAllWindows() here because it
    // sometimes causes Sibelius crashes.
    Trace('Run `npm test` to test output written to ' & _SibTestFileDirectory);
}  //$end

function GetPluginFolder(plgName) {
    //$module(Run.mss)
    plgNameLength = Length(plgName);

    for each plugin in Sibelius.Plugins
    {
        path = plugin.File;
        i = Length(path) - 2;
        while (i >= 0 and CharAt(path, i) != Sibelius.PathSeparator) {
            i = i - 1;
        }

        if (Substring(path, i + 1) = plgName) {
            return Substring(path, 0, i + 1);
        }
    }

    Sibelius.MessageBox(plgName & ' was not found');
    ExitPlugin();
}  //$end

function CreateEmptyTestScore(staffs, bars) {
    //$module(Run.mss)
    score = Sibelius.New();
    while (score.StaffCount < staffs) {
        score.CreateInstrumentAtBottom('instrument.other.trebleclef');
    }
    while (score.SystemStaff.BarCount > bars) {
        score.SystemStaff.NthBar(1).Delete();
    }
    score.AddBars(bars - score.SystemStaff.BarCount);
    return score;
}  //$end

function OpenSibFile(filePath, okIfAlreadyOpen) {
    //$module(Run.mss)

    alreadyOpenFile = GetOpenSibFile(filePath);

    if (null != alreadyOpenFile) {
        if (okIfAlreadyOpen) {
            return alreadyOpenFile;
        } else {
            return null;
        }
    }

    if (Sibelius.FileExists(filePath)) {
        Sibelius.Open(filePath);
        return GetOpenSibFile(filePath);
    }
}  //$end

function GetOpenSibFile(filePath) {
    //$module(Run.mss)

    filePath = '' & filePath;

    // Sibelius.ScoreCount does not seem to be working reliably (at least when
    // scores have just been opened programatically), so instead of a for loop
    // we do the following:

    i = 0;
    while (true) {
        score = Sibelius.NthScore(i);
        if ((score = null) or (score.FileName = filePath)) {
            return score;
        }
        i = i + 1;
    }
}  //$end

function EnsureActiveScoreExists() {
    //$module(Run.mss)

    // Sometimes, Sibelius.ActiveScore is null.
    if (null = Sibelius.ActiveScore) {
        Sibelius.ActiveScore = Sibelius.New();
    }
}  //$end

function GetTempDir() {
    //$module(Run.mss)
    if (Sibelius.PathSeparator = '/') {
        tempFolder = '/tmp/';
    } else {
        appDataFolder = Sibelius.GetUserApplicationDataFolder();
        // appDataFolder usually looks like C:\Users\{username}\AppData\Roaming\
        // We strip the trailing bit until the second to last backslash
        i = Length(appDataFolder) - 2;
        while (i >= 0 and CharAt(appDataFolder, i) != '\\') {
            i = i - 1;
        }
        // tempFolder usually looks like C:\Users\USERNAME\AppData\Local\Temp\
        // So we replace the trailing 'Roaming' with 'Local\Temp'
        tempFolder = Substring(appDataFolder, 0, i) & '\\Local\\Temp\\';
    }
    if (Sibelius.FolderExists(tempFolder)) {
        return Sibelius.GetFolder(tempFolder);
    }
}  //$end

function CreateNewTempDir() {
    //$module(Run.mss)

    // In a test, we might create multiple temp directories in one second, so
    // the date string is not unique enough. So we also add a running number
    // that is reset to 0 for the next second.
    if (Self._property:lastTempFolderCreationTime = Sibelius.CurrentTime) {
        Self._property:tempFolderCount = Self._property:tempFolderCount + 1;
    } else {
        Self._property:lastTempFolderCreationTime = Sibelius.CurrentTime;
        Self._property:tempFolderCount = 0;
    }

    return Sibelius.CreateFolder(
        GetTempDir() & DateTimeString(Sibelius.CurrentDate) & '-' & Self._property:tempFolderCount
    );
}  //$end

function DateTimeString(date) {
    //$module(Run.mss)
    dateComponents = CreateSparseArray(
        date.Year,
        date.Month,
        date.DayOfMonth,
        date.Hours,
        date.Minutes,
        date.Seconds
    );
    return dateComponents.Join('-');
}  //$end

function Run() {
    Self._property:libmei = libmei4;
    Self._property:sibmei = sibmei4;
    sibmei4._property:libmei = libmei;
    sibmei.InitGlobals(CreateSparseArray('sibmei4_extension_test'));

    plugins = Sibelius.Plugins;

    if (not (plugins.Contains('Test')))
    {
        Sibelius.MessageBox('Please install the Test plugin!');
        ExitPlugin();
    }

    // In an attempt to minimize the chance of Sibelius crashing randomly, close
    // all scores before running the tests.
    if (not Sibelius.YesNoMessageBox(
        'All open scores will be closed without saving before running the tests. Continue?'
    ))
    {
        ExitPlugin();
    }

    Sibelius.CloseAllWindows(false);
    Sibelius.New();

    Self._property:pluginDir = GetPluginFolder('sibmei4.plg');
    Self._property:tempDir = CreateNewTempDir();
    Self._property:_SibTestFileDirectory = pluginDir & 'sibmeiTestSibs'  & Sibelius.PathSeparator;

    suite = Test.Suite('Sibelius MEI Exporter', Self, sibmei);

    suite
        .AddModule('TestExportConverters')
        .AddModule('TestLibmei')
        .AddModule('TestExportGenerators')
        .AddModule('TestUtilities')
    ;

    suite.Run();

    sibmei4_batch_sib.ConvertFolder(
        Sibelius.GetFolder(_SibTestFileDirectory),
        CreateSparseArray('sibmei4_extension_test')
    );

    // We do not 'clean up' with Sibelius.CloseAllWindows() here because it
    // sometimes causes Sibelius crashes.
    Trace('Run `npm test` to test output written to ' & _SibTestFileDirectory);
}  //$end

function GetPluginFolder(plgName) {
    //$module(Run.mss)
    plgNameLength = Length(plgName);

    for each plugin in Sibelius.Plugins
    {
        path = plugin.File;
        i = Length(path) - 2;
        while (i >= 0 and CharAt(path, i) != Sibelius.PathSeparator) {
            i = i - 1;
        }

        if (Substring(path, i + 1) = plgName) {
            return Substring(path, 0, i + 1);
        }
    }

    Sibelius.MessageBox(plgName & ' was not found');
    ExitPlugin();
}  //$end

function CreateEmptyTestScore(staffs, bars) {
    //$module(Run.mss)
    score = Sibelius.New();
    while (score.StaffCount < staffs) {
        score.CreateInstrumentAtBottom('instrument.other.trebleclef');
    }
    while (score.SystemStaff.BarCount > bars) {
        score.SystemStaff.NthBar(1).Delete();
    }
    score.AddBars(bars - score.SystemStaff.BarCount);
    return score;
}  //$end

function OpenSibFile(filePath, okIfAlreadyOpen) {
    //$module(Run.mss)

    alreadyOpenFile = GetOpenSibFile(filePath);

    if (null != alreadyOpenFile) {
        if (okIfAlreadyOpen) {
            return alreadyOpenFile;
        } else {
            return null;
        }
    }

    if (Sibelius.FileExists(filePath)) {
        Sibelius.Open(filePath);
        return GetOpenSibFile(filePath);
    }
}  //$end

function GetOpenSibFile(filePath) {
    //$module(Run.mss)

    filePath = '' & filePath;

    // Sibelius.ScoreCount does not seem to be working reliably (at least when
    // scores have just been opened programatically), so instead of a for loop
    // we do the following:

    i = 0;
    while (true) {
        score = Sibelius.NthScore(i);
        if ((score = null) or (score.FileName = filePath)) {
            return score;
        }
        i = i + 1;
    }
}  //$end

function EnsureActiveScoreExists() {
    //$module(Run.mss)

    // Sometimes, Sibelius.ActiveScore is null.
    if (null = Sibelius.ActiveScore) {
        Sibelius.ActiveScore = Sibelius.New();
    }
}  //$end

function GetTempDir() {
    //$module(Run.mss)
    if (Sibelius.PathSeparator = '/') {
        tempFolder = '/tmp/';
    } else {
        appDataFolder = Sibelius.GetUserApplicationDataFolder();
        // appDataFolder usually looks like C:\Users\{username}\AppData\Roaming\
        // We strip the trailing bit until the second to last backslash
        i = Length(appDataFolder) - 2;
        while (i >= 0 and CharAt(appDataFolder, i) != '\\') {
            i = i - 1;
        }
        // tempFolder usually looks like C:\Users\USERNAME\AppData\Local\Temp\
        // So we replace the trailing 'Roaming' with 'Local\Temp'
        tempFolder = Substring(appDataFolder, 0, i) & '\\Local\\Temp\\';
    }
    if (Sibelius.FolderExists(tempFolder)) {
        return Sibelius.GetFolder(tempFolder);
    }
}  //$end

function CreateNewTempDir() {
    //$module(Run.mss)

    // In a test, we might create multiple temp directories in one second, so
    // the date string is not unique enough. So we also add a running number
    // that is reset to 0 for the next second.
    if (Self._property:lastTempFolderCreationTime = Sibelius.CurrentTime) {
        Self._property:tempFolderCount = Self._property:tempFolderCount + 1;
    } else {
        Self._property:lastTempFolderCreationTime = Sibelius.CurrentTime;
        Self._property:tempFolderCount = 0;
    }

    return Sibelius.CreateFolder(
        GetTempDir() & DateTimeString(Sibelius.CurrentDate) & '-' & Self._property:tempFolderCount
    );
}  //$end

function DateTimeString(date) {
    //$module(Run.mss)
    dateComponents = CreateSparseArray(
        date.Year,
        date.Month,
        date.DayOfMonth,
        date.Hours,
        date.Minutes,
        date.Seconds
    );
    return dateComponents.Join('-');
}  //$end


more complex example with listing what values each layer should get

#world {
  polygon-fill: #FFF;
  line-color:#F00;
  line-width: 0.5;
}

#world[NAME='United States'] {
  polygon-fill:#CCC;
  [zoom > 6] {
    polygon-fill:#DDD;
  }
}

#world[NAME='Canada'],
#countries {
  polygon-fill: #eee;
  line-color: #ccc;
  line-width: 1;

  .new {
    polygon-fill: #CCC;
  }

  .new[zoom > 5] {
    line-width:0.5;

    [NAME='United States'] {
      polygon-fill:#AFC;
    }
  }
}

/******************************************************************************/
/* FLATTENS INTO                                                              */
/******************************************************************************/

#world {
  polygon-fill: #FFF;
  line-color:#F00;
  line-width:0.5;
}

#world [NAME='United States'] {
  polygon-fill:#CCC;
}

#world [NAME='United States'] [zoom > 6] {
  polygon-fill:#DDD;
}

#world [NAME='Canada'] {
  polygon-fill: #eee;
  line-color: #ccc;
  line-width: 1;
}

#world .new [NAME='Canada'] {
  polygon-fill: #CCC;
}

#world .new [NAME='Canada'] [zoom > 5] {
  line-width:0.5;
}

#world .new [NAME='Canada'] [zoom > 5] [NAME='United States'] {
  /* how do we handle filter overrides? I think we should discard the entire
     ruleset since there's obviously no way for this to be true */
  polygon-fill:#AFC;
}

#countries {
  polygon-fill: #eee;
  line-color: #ccc;
  line-width: 1;
}

#countries .new {
  polygon-fill: #CCC;
}

#countries .new [zoom > 5] {
  line-width:0.5;
}

#countries .new [zoom > 5] [NAME='United States'] {
  /* for the #countries layer case, there was no previous filter on NAME, so we
     use that value and keep the ruleset */
  polygon-fill:#AFC;
}

/******************************************************************************/
/* CONVERTS TO                                                                */
/******************************************************************************/

Layer: #world

<Style>
  <Rule>
    <MinScaleDenominator>6</MinScaleDenominator>
    <Filter>[NAME] = "United States"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#DDDDDD" stroke-width="2" />
  </Rule>
  <Rule>
    <Filter>[NAME] = "United States"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#DDDDDD" stroke-width="2" />
  </Rule>
  <Rule>
    <Filter>[NAME] = "Canada"</Filter>
    <PolygonSymbolizer fill="#EEEEEE"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="1" />
  </Rule>
  <Rule>
    <ElseFilter/>
    <PolygonSymbolizer fill="#FFFFFF"/>
    <LineSymbolizer color="#FF0000" stroke-width="0.5" />
  </Rule>
</Style>

Layer #world.new

<Style>
  <Rule>
    <MinScaleDenominator>6</MinScaleDenominator>
    <Filter>[NAME] = "United States"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#DDDDDD" stroke-width="2" />
  </Rule>
  <Rule>
    <Filter>[NAME] = "United States"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#DDDDDD" stroke-width="2" />
  </Rule>
  <Rule>
    <MinScaleDenominator>5</MinScaleDenominator>
    <Filter>[NAME] = "Canada"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="0.5" />
  </Rule>
  <Rule>
    <Filter>[NAME] = "Canada"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="1" />
  </Rule>
  <Rule>
    <ElseFilter/>
    <PolygonSymbolizer fill="#FFFFFF"/>
    <LineSymbolizer color="#FF0000" stroke-width="0.5" />
  </Rule>
</Style>

Layer #countries

<Style>
  <Rule>
    <PolygonSymbolizer fill="#EEEEEE"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="2" />
  </Rule>
</Style>

Layer #countries.new

<Style>
  <Rule>
    <MinScaleDenominator>5</MinScaleDenominator>
    <Filter>[NAME] = "United States"</Filter>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="0.5" />
  </Rule>
  <Rule>
    <MinScaleDenominator>5</MinScaleDenominator>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="0.5" />
  </Rule>
  <Rule>
    <ElseFilter/>
    <PolygonSymbolizer fill="#CCCCCC"/>
    <LineSymbolizer color="#CCCCCC" stroke-width="2" />
  </Rule>
</Style>

error: pathspec 'test/mess/complex_cascades.mss' did not match any file(s) known to git


fix #1 flèches oneway à partir de z17

fix #1 flèches oneway à partir de z17