Darken Municipalities outline color

Darken Municipalities outline color

So it doesn't clash with other boundary layers which may also
be active at the same time.

/* CONSIDER THAT CHANGES TO THESE STYLES WILL MAKE THE   */
/* TILE CACHE STALE. PLEASE USE setupdb.sh TO INVALIDATE */
/* THE LAYERS IMPACTED BY YOUR CHANGES.                  */

#boundary_county,
#boundary_district,
#boundary_school_district,
#boundary_huc08,
#boundary_huc10,
#boundary_huc12 {
  ::case {
   line-color: #FFF;
   line-opacity: 0.5;
   line-width: 3;
   line-join: round;
  }

  ::fill  {
    polygon-opacity: 0.0;
    line-color: #E77471;
    line-opacity: 0.75;
    line-width: 1.5;
    line-join: round;
  }
}

#dep_municipalities {
  ::case {
   line-color: #FFF;
   line-opacity: 0.5;
   line-width: 3;
   line-join: round;
  }

  ::fill  {
    polygon-opacity: 0.0;
    line-color: #1d3331;
    line-opacity: 0.75;
    line-width: 1.5;
    line-join: round;
  }
}

#dep_urban_areas {
  ::case {
      line-color: #7F7F7F;
      line-width: 1;
  }
  ::fill {
      polygon-fill: #ccc;
  }
}

// Updates to steps should also be made to the legend_mappings
// in mmw/settings/layer_settings
// Any updates to colors must also be made in _variables.scss
@drb_catchment_step_one_color: #A0A0A0;
@drb_catchment_step_two_color: #888888;
@drb_catchment_step_three_color: #707070;
@drb_catchment_step_four_color: #484848;
@drb_catchment_step_five_color: #202020;
@drb_catchment_line_color: #FFF;
@drb_catchment_line_width: 2;

#drb_catchment_water_quality_tn {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tn_tot_kgy >= 0][tn_tot_kgy < 5] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tn_tot_kgy >= 5][tn_tot_kgy < 10] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tn_tot_kgy >= 10][tn_tot_kgy < 15] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tn_tot_kgy >= 15][tn_tot_kgy < 20] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tn_tot_kgy >= 20] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

#drb_catchment_water_quality_tp {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tp_tot_kgy >= 0.0][tp_tot_kgy < 0.30] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tp_tot_kgy >= 0.30][tp_tot_kgy < 0.60] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tp_tot_kgy >= 0.60][tp_tot_kgy < 0.90] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tp_tot_kgy >= 0.90][tp_tot_kgy < 1.20] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tp_tot_kgy >= 1.20] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

#drb_catchment_water_quality_tss {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tss_tot_kg >= 0][tss_tot_kg < 250] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tss_tot_kg >= 250][tss_tot_kg < 500] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tss_tot_kg >= 500][tss_tot_kg < 750] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tss_tot_kg >= 750][tss_tot_kg < 1000] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tss_tot_kg >= 1000] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

// Any updates to colors should also be made in _variables.scss
@streamColor: #1562A9;
@wtrQualColor0: #1a9641;
@wtrQualColor1: #a6d96a;
@wtrQualColor2: #ffffbf;
@wtrQualColor3: #fdae61;
@wtrQualColor4: #d7191c;
@wtrQualColorNA: #9E9E9E;

@zoomBase: 0.5;

/* DRB and NHD Streams have custom SQL which is executed for tile requests
   that is dynamically generated from the requested zoom level.  This filters
   stream features out below a certain threshold of stream_order per zoom level.
   Ensure that any changes to which stream_order + zoom levels are rendered
   here have appropriate coinciding filters in server.js
*/

#drb_streams_50 {
  line-color: @streamColor;
  line-join: round;
  line-cap: round;
}

#nhdflowline {
  line-color: @streamColor;
  line-join: round;
  line-cap: round;
}

#nhd_quality_tp,
#nhd_quality_tn,
#nhd_quality_tss {
  [nhd_qual_grp="L1"] {
    line-color: @wtrQualColor0;
  }
  [nhd_qual_grp="L2"] {
    line-color: @wtrQualColor1;
  }
  [nhd_qual_grp="L3"] {
    line-color: @wtrQualColor2;
  }
  [nhd_qual_grp="L4"] {
    line-color: @wtrQualColor3;
  }
  [nhd_qual_grp="L5"] {
    line-color: @wtrQualColor4;
  }
  [nhd_qual_grp="NA"] {
    line-color: @wtrQualColorNA;
  }
}

#nhdflowline[zoom<=4],
#nhd_quality_tp[zoom<=4],
#nhd_quality_tn[zoom<=4],
#nhd_quality_tss[zoom<=4] {
  [stream_order=10] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=5][zoom<=6],
#nhd_quality_tp[zoom>=5][zoom<=6],
#nhd_quality_tn[zoom>=5][zoom<=6],
#nhd_quality_tss[zoom>=5][zoom<=6] {
  [stream_order=10] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=7][zoom<=8],
#nhd_quality_tp[zoom>=7][zoom<=8],
#nhd_quality_tn[zoom>=7][zoom<=8],
#nhd_quality_tss[zoom>=7][zoom<=8] {
  [stream_order>=9] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=7] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order<=6] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order=5] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=9][zoom<=10],
#nhd_quality_tp[zoom>=9][zoom<=10],
#nhd_quality_tn[zoom>=9][zoom<=10],
#nhd_quality_tss[zoom>=9][zoom<=10] {
  [stream_order>=9] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=11][zoom<=12],
#nhd_quality_tp[zoom>=11][zoom<=12],
#nhd_quality_tn[zoom>=11][zoom<=12],
#nhd_quality_tss[zoom>=11][zoom<=12] {
  [stream_order>=9] {
    line-width: 18.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 12.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  9.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  6.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  4.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=13],
#nhd_quality_tp[zoom>=13],
#nhd_quality_tn[zoom>=13],
#nhd_quality_tss[zoom>=13] {
  [stream_order>=9] {
    line-width: 18.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=3] {
    line-width:  10.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  8.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  5.0 * @zoomBase;
  }
}

#drb_streams_50[zoom<=4]{
  [stream_order=10] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=5][zoom<=6]{
  [stream_order=10] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=7][zoom<=8]{
  [stream_order>=9] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=7] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order<=6] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=5] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=9][zoom<=10]{
  [stream_order>=9] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=11][zoom<=12] {
  [stream_order>=9] {
    line-width: 12.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  6.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  4.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  3.0 * @zoomBase;
  }
}
#drb_streams_50[zoom>=13]{
  [stream_order>=9] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 11.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  8.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  4.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  3.0 * @zoomBase;
  }
}

/* CONSIDER THAT CHANGES TO THESE STYLES WILL MAKE THE   */
/* TILE CACHE STALE. PLEASE USE setupdb.sh TO INVALIDATE */
/* THE LAYERS IMPACTED BY YOUR CHANGES.                  */

#boundary_county,
#boundary_district,
#boundary_school_district,
#boundary_huc08,
#boundary_huc10,
#boundary_huc12,
#dep_municipalities {
  ::case {
   line-color: #FFF;
   line-opacity: 0.5;
   line-width: 3;
   line-join: round;
  }

  ::fill  {
    polygon-opacity: 0.0;
    line-color: #E77471;
    line-opacity: 0.75;
    line-width: 1.5;
    line-join: round;
  }
}

#dep_urban_areas {
  ::case {
      line-color: #7F7F7F;
      line-width: 1;
  }
  ::fill {
      polygon-fill: #ccc;
  }
}

// Updates to steps should also be made to the legend_mappings
// in mmw/settings/layer_settings
// Any updates to colors must also be made in _variables.scss
@drb_catchment_step_one_color: #A0A0A0;
@drb_catchment_step_two_color: #888888;
@drb_catchment_step_three_color: #707070;
@drb_catchment_step_four_color: #484848;
@drb_catchment_step_five_color: #202020;
@drb_catchment_line_color: #FFF;
@drb_catchment_line_width: 2;

#drb_catchment_water_quality_tn {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tn_tot_kgy >= 0][tn_tot_kgy < 5] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tn_tot_kgy >= 5][tn_tot_kgy < 10] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tn_tot_kgy >= 10][tn_tot_kgy < 15] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tn_tot_kgy >= 15][tn_tot_kgy < 20] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tn_tot_kgy >= 20] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

#drb_catchment_water_quality_tp {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tp_tot_kgy >= 0.0][tp_tot_kgy < 0.30] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tp_tot_kgy >= 0.30][tp_tot_kgy < 0.60] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tp_tot_kgy >= 0.60][tp_tot_kgy < 0.90] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tp_tot_kgy >= 0.90][tp_tot_kgy < 1.20] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tp_tot_kgy >= 1.20] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

#drb_catchment_water_quality_tss {
    line-color: @drb_catchment_line_color;
    line-width: @drb_catchment_line_width;
    [tss_tot_kg >= 0][tss_tot_kg < 250] {
        polygon-fill: @drb_catchment_step_one_color;
    }
    [tss_tot_kg >= 250][tss_tot_kg < 500] {
        polygon-fill: @drb_catchment_step_two_color;
    }
    [tss_tot_kg >= 500][tss_tot_kg < 750] {
        polygon-fill: @drb_catchment_step_three_color;
    }
    [tss_tot_kg >= 750][tss_tot_kg < 1000] {
        polygon-fill: @drb_catchment_step_four_color;
    }
    [tss_tot_kg >= 1000] {
        polygon-fill: @drb_catchment_step_five_color;
    }
}

// Any updates to colors should also be made in _variables.scss
@streamColor: #1562A9;
@wtrQualColor0: #1a9641;
@wtrQualColor1: #a6d96a;
@wtrQualColor2: #ffffbf;
@wtrQualColor3: #fdae61;
@wtrQualColor4: #d7191c;
@wtrQualColorNA: #9E9E9E;

@zoomBase: 0.5;

/* DRB and NHD Streams have custom SQL which is executed for tile requests
   that is dynamically generated from the requested zoom level.  This filters
   stream features out below a certain threshold of stream_order per zoom level.
   Ensure that any changes to which stream_order + zoom levels are rendered
   here have appropriate coinciding filters in server.js
*/

#drb_streams_50 {
  line-color: @streamColor;
  line-join: round;
  line-cap: round;
}

#nhdflowline {
  line-color: @streamColor;
  line-join: round;
  line-cap: round;
}

#nhd_quality_tp,
#nhd_quality_tn,
#nhd_quality_tss {
  [nhd_qual_grp="L1"] {
    line-color: @wtrQualColor0;
  }
  [nhd_qual_grp="L2"] {
    line-color: @wtrQualColor1;
  }
  [nhd_qual_grp="L3"] {
    line-color: @wtrQualColor2;
  }
  [nhd_qual_grp="L4"] {
    line-color: @wtrQualColor3;
  }
  [nhd_qual_grp="L5"] {
    line-color: @wtrQualColor4;
  }
  [nhd_qual_grp="NA"] {
    line-color: @wtrQualColorNA;
  }
}

#nhdflowline[zoom<=4],
#nhd_quality_tp[zoom<=4],
#nhd_quality_tn[zoom<=4],
#nhd_quality_tss[zoom<=4] {
  [stream_order=10] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=5][zoom<=6],
#nhd_quality_tp[zoom>=5][zoom<=6],
#nhd_quality_tn[zoom>=5][zoom<=6],
#nhd_quality_tss[zoom>=5][zoom<=6] {
  [stream_order=10] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=7][zoom<=8],
#nhd_quality_tp[zoom>=7][zoom<=8],
#nhd_quality_tn[zoom>=7][zoom<=8],
#nhd_quality_tss[zoom>=7][zoom<=8] {
  [stream_order>=9] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=7] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order<=6] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order=5] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=9][zoom<=10],
#nhd_quality_tp[zoom>=9][zoom<=10],
#nhd_quality_tn[zoom>=9][zoom<=10],
#nhd_quality_tss[zoom>=9][zoom<=10] {
  [stream_order>=9] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width: 3.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=11][zoom<=12],
#nhd_quality_tp[zoom>=11][zoom<=12],
#nhd_quality_tn[zoom>=11][zoom<=12],
#nhd_quality_tss[zoom>=11][zoom<=12] {
  [stream_order>=9] {
    line-width: 18.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 12.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  9.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  6.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  4.0 * @zoomBase;
  }
}

#nhdflowline[zoom>=13],
#nhd_quality_tp[zoom>=13],
#nhd_quality_tn[zoom>=13],
#nhd_quality_tss[zoom>=13] {
  [stream_order>=9] {
    line-width: 18.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=3] {
    line-width:  10.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  8.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  5.0 * @zoomBase;
  }
}

#drb_streams_50[zoom<=4]{
  [stream_order=10] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=5][zoom<=6]{
  [stream_order=10] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order=9] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order<=8] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=7][zoom<=8]{
  [stream_order>=9] {
    line-width: 7.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=7] {
    line-width: 4.0 * @zoomBase;
  }
  [stream_order<=6] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=5] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=9][zoom<=10]{
  [stream_order>=9] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 5.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width: 3.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width: 2.0 * @zoomBase;
  }
}

#drb_streams_50[zoom>=11][zoom<=12] {
  [stream_order>=9] {
    line-width: 12.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 10.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  6.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  4.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  3.0 * @zoomBase;
  }
}
#drb_streams_50[zoom>=13]{
  [stream_order>=9] {
    line-width: 14.0 * @zoomBase;
  }
  [stream_order<=8][stream_order>=6] {
    line-width: 11.0 * @zoomBase;
  }
  [stream_order<=5][stream_order>=4] {
    line-width:  8.0 * @zoomBase;
  }
  [stream_order=3] {
    line-width:  5.0 * @zoomBase;
  }
  [stream_order=2] {
    line-width:  4.0 * @zoomBase;
  }
  [stream_order<=1][stream_order>=0] {
    line-width:  3.0 * @zoomBase;
  }
}


New: Update identifier for 2.0.3

New: Update identifier for 2.0.3

Version     "2.0.3"
PluginName  "Sibelius to MEI Exporter"
Author      "Andrew Hankinson"

_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file was not exported because of an error."
_VersionNotSupported "Versions earlier than Sibelius 7 are not supported."
_ExportingBars "Exporting to MEI: Bar %s of %s"

_ObjectAssignedToAllVoicesWarning "Bar %s, voice %s. %s assigned to all voices will be encoded on voice 1. If this is incorrect, you should explicitly assign this object to a voice."
_ObjectHasNoMEISupport "%s is not supported by MEI at this time."
_ObjectIsOnAnIllogicalObject "Bar %s, voice %s. %s is added to a %s object. This will create invalid MEI. You should fix this in your Sibelius file if possible, or edit your MEI file after export."

LOGFILE "/tmp/sibelius.log"

Version     "2.0.2"
PluginName  "Sibelius to MEI Exporter"
Author      "Andrew Hankinson"

_InitialProgressTitle "Exporting %s to MEI"
_ExportFileIsNull "You must specify a file to save."
_ScoreError "Please open a score and try again."
_ExportSuccess "The file was exported successfully."
_ExportFailure "The file was not exported because of an error."
_VersionNotSupported "Versions earlier than Sibelius 7 are not supported."
_ExportingBars "Exporting to MEI: Bar %s of %s"

_ObjectAssignedToAllVoicesWarning "Bar %s, voice %s. %s assigned to all voices will be encoded on voice 1. If this is incorrect, you should explicitly assign this object to a voice."
_ObjectHasNoMEISupport "%s is not supported by MEI at this time."
_ObjectIsOnAnIllogicalObject "Bar %s, voice %s. %s is added to a %s object. This will create invalid MEI. You should fix this in your Sibelius file if possible, or edit your MEI file after export."

LOGFILE "/tmp/sibelius.log"


Fixed: Filename included path components

Removed path components from the full path of the filename.

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

    // first, ensure we're running with a clean slate.
    libmei.destroy();

    // do some preliminary checks
    if (Sibelius.ProgramVersion < 7000)
    {
        Sibelius.MessageBox(_VersionNotSupported);
        return False;
    }

    if (Sibelius.ScoreCount = 0)
    {
        Sibelius.MessageBox(_ScoreError);
        return False;
    }

    // get the active score object
    activeScore = Sibelius.ActiveScore;

    // it does not seem possible to get the current folder for the file
    // so we will default to the user's documents folder.
    // NB: it seems that if we don't specify a folder name, the filename
    // is not properly set.
    activeFileNameFull = activeScore.FileName;
    activeFileName = utils.ExtractFileName(activeFileNameFull);
    activePath = Sibelius.GetDocumentsFolder();

    // Ask to the file to be saved somewhere
    filename = Sibelius.SelectFileToSave('Save as...', activeFileName, activePath, 'mei', 'TEXT', 'Music Encoding Initiative');

    if (filename = null)
    {
        Sibelius.MessageBox(_ExportFileIsNull);
        return False;
    }

    DoExport(filename);

}  //$end

function DoExport (filename) {
    //$module(Run.mss)

    // Deal with the Progress GUI
    // set the active score here so we can refer to it throughout the plugin
    Self._property:ActiveScore = Sibelius.ActiveScore;

    // Set up the warnings tracker
    Self._property:warnings = CreateSparseArray();

    progCount = Sibelius.ActiveScore.SystemStaff.BarCount;
    fn = utils.ExtractFileName(filename);
    progressTitle = utils.Format(_InitialProgressTitle, fn);
    Sibelius.CreateProgressDialog(progressTitle, 0, progCount - 1);

    // finally, process the score.
    ProcessScore();

    doc = libmei.getDocument();
    // save the file
    export_status = libmei.meiDocumentToFile(doc, filename);

    // start cleaning up.
    Sibelius.DestroyProgressDialog();

    // display the warnings that were registered during the export process
    for each warning in Self._property:warnings
    {
        trace('Warning: ' & warning);
    }

    if (export_status = False)
    {
        Sibelius.MessageBox(_ExportFailure);
    }

    // clean up after ourself
    libmei.destroy();
}  //$end

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

    // first, ensure we're running with a clean slate.
    libmei.destroy();

    // do some preliminary checks
    if (Sibelius.ProgramVersion < 7000)
    {
        Sibelius.MessageBox(_VersionNotSupported);
        return False;
    }

    if (Sibelius.ScoreCount = 0)
    {
        Sibelius.MessageBox(_ScoreError);
        return False;
    }

    // get the active score object
    activeScore = Sibelius.ActiveScore;

    // it does not seem possible to get the current folder for the file
    // so we will default to the user's documents folder.
    // NB: it seems that if we don't specify a folder name, the filename
    // is not properly set.
    activeFileName = activeScore.FileName;
    defaultFolder = Sibelius.GetDocumentsFolder();

    // Ask to the file to be saved somewhere
    filename = Sibelius.SelectFileToSave('Save as...', activeFileName, defaultFolder, 'mei', 'TEXT', 'Music Encoding Initiative');

    if (filename = null)
    {
        Sibelius.MessageBox(_ExportFileIsNull);
        return False;
    }

    DoExport(filename);

}  //$end

function DoExport (filename) {
    //$module(Run.mss)

    // Deal with the Progress GUI
    // set the active score here so we can refer to it throughout the plugin
    Self._property:ActiveScore = Sibelius.ActiveScore;

    // Set up the warnings tracker
    Self._property:warnings = CreateSparseArray();

    progCount = Sibelius.ActiveScore.SystemStaff.BarCount;
    fn = utils.ExtractFileName(filename);
    progressTitle = utils.Format(_InitialProgressTitle, fn);
    Sibelius.CreateProgressDialog(progressTitle, 0, progCount - 1);

    // finally, process the score.
    ProcessScore();

    doc = libmei.getDocument();
    // save the file
    export_status = libmei.meiDocumentToFile(doc, filename);

    // start cleaning up.
    Sibelius.DestroyProgressDialog();

    // display the warnings that were registered during the export process
    for each warning in Self._property:warnings
    {
        trace('Warning: ' & warning);
    }

    if (export_status = False)
    {
        Sibelius.MessageBox(_ExportFailure);
    }

    // clean up after ourself
    libmei.destroy();
}  //$end


Updated styles

Updated styles

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

#lands {
	text-face-name: 'Noto Sans Regular';
    text-name:'[loc_nm]';
    text-size: 12;
    text-placement:line;
    text-fill:black;
    text-min-padding:1;
   	text-wrap-width:100;
	polygon-opacity:1;
    line-width:1;
    line-color:black;
	[adminLevel='state'] {
    	polygon-fill:#f781bf;
	}
	[adminLevel='county'] {
    	polygon-fill:#ffff33;
	}
	[adminLevel='local'] {
    	polygon-fill:#377eb8;
	}
	[adminAgency='Bureau of Land Management'][type!='wilderness area'] {
		polygon-fill: #e41a1c;
	}
	[adminAgency='Bureau of Reclamation'][type!='wilderness area'] {
		polygon-fill: #984ea3;
	}
	[adminAgency='Forest Service'][type!='wilderness area'] {
		polygon-fill: #4daf4a;
	}
	[adminAgency='National Park Service'][type!='wilderness area'] {
		polygon-fill: #a65628;
	}
	[adminAgency='Department of Defense']{
		polygon-fill: #ff7f00;
	}
	[adminAgency='Army Corps of Engineers'] {
		polygon-fill: #ff7f00;
	}
	[adminAgency='Army'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Air Force'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Navy'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Marine Corps'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Coast Guard']{
        polygon-fill: #ff7f00;
    }
	[adminAgency='Department of Energy']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of Agriculture']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Fish & Wildlife Service'][type!='wilderness area'] {
		polygon-fill: #0489B1;
	}
	[adminAgency='National Aeronautics and Space Administration']{
		polygon-fill: #984ea3;
	}
	[adminAgency='International Boundary & Water Commission']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Tennessee Valley Authority']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Bureau of Indian Affairs']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of the Interior'][type!='wilderness area'] {
		polygon-fill: #984ea3;
	}
	[adminAgency='National Center for Atmospheric Research']{
		polygon-fill: #984ea3;
	}
	[adminAgency='National Institute of Standards and Technology']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of Justice']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Department of Commerce']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Department of Veterans Affairs']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Aviation Administration']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Bureau of Indian Affairs'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Bonneville Power Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Government'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Highway Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Fire Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='National Marine Fisheries Service'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Natural Resources Conservation Service'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Smithsonian'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Smithsonian Environmental Research Center'] {
        polygon-fill: #984ea3;
    }
}

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

#lands {
	text-face-name: 'Noto Sans Regular';
    text-name:'[loc_nm]';
    text-size: 12;
    text-placement:line;
    text-fill:black;
    text-min-padding:1;
   	text-wrap-width:100;
	polygon-opacity:1;
    line-width:1;
    line-color:black;
	[adminLevel='state'] {
    	polygon-fill:#4daf4a;
	}
	[adminLevel='county'] {
    	polygon-fill:#ffff33;
	}
	[adminLevel='local'] {
    	polygon-fill:#377eb8;
	}
	[adminAgency='Bureau of Land Management'] {
		polygon-fill: #e41a1c;
	}
	[adminAgency='Bureau of Reclamation']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Forest Service']{
		polygon-fill: #a65628;
	}
	[adminAgency='National Park Service']{
		polygon-fill: #f781bf;
	}
	[adminAgency='Department of Defense']{
		polygon-fill: #ff7f00;
	}
	[adminAgency='Army Corps of Engineers'] {
		polygon-fill: #ff7f00;
	}
	[adminAgency='Army'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Air Force'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Navy'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Marine Corps'] {
        polygon-fill: #ff7f00;
    }
	[adminAgency='Coast Guard']{
        polygon-fill: #ff7f00;
    }
	[adminAgency='Department of Energy']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of Agriculture']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of Transportation']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Fish & Wildlife Service']{
		polygon-fill: #0489B1;
	}
	[adminAgency='National Aeronautics and Space Administration']{
		polygon-fill: #984ea3;
	}
	[adminAgency='International Boundary & Water Commission']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Tennessee Valley Authority']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Bureau of Indian Affairs']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of the Interior']{
		polygon-fill: #984ea3;
	}
	[adminAgency='National Center for Atmospheric Research']{
		polygon-fill: #984ea3;
	}
	[adminAgency='National Institute of Standards and Technology']{
		polygon-fill: #984ea3;
	}
	[adminAgency='Department of Justice']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Department of Commerce']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Department of Veterans Affairs']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Aviation Administration']{
        polygon-fill: #984ea3;
    }
	[adminAgency='Bureau of Indian Affairs'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Bonneville Power Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Government'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Federal Highway Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Fire Administration'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='International Boundary & Water Commission'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='National Marine Fisheries Service'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Natural Resources Conservation Service'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Smithsonian'] {
        polygon-fill: #984ea3;
    }
	[adminAgency='Smithsonian Environmental Research Center'] {
        polygon-fill: #984ea3;
    }
}


Simplify weird river line-cap logic

Simplify weird river line-cap logic

/* BASE.MSS CONTENTS
 * - Landuse & landcover
 * - Water areas
 * - Water ways
 * - Administrative Boundaries
 *
 */

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

#land[zoom>=0][zoom<6],
#shoreline_300[zoom>=6][zoom<10],
#processed_p[zoom>=10] {
  polygon-fill: @land;
  polygon-gamma: 0.75;
}

#landuse_gen0[zoom>3][zoom<=9],
#landuse_gen1[zoom>9][zoom<=12],
#landuse[zoom>12] {
  [type='cemetery']      { polygon-fill: @cemetery; }
  [type='college']       { polygon-fill: @school; }
  [type='commercial']    { polygon-fill: @industrial; }
  [type='forest']        { polygon-fill: @wooded; }
  [type='golf_course']   { polygon-fill: @park; }
  [type='grass']         { polygon-fill: @park; }
  [type='hospital']      { polygon-fill: @hospital; }
  [type='industrial']    { polygon-fill: @industrial; }
  [type='park']          { polygon-fill: @park; }
  [type='parking']       { polygon-fill: @parking; }
  [type='pedestrian']    { polygon-fill: @pedestrian_fill; }
  [type='pitch']         { polygon-fill: @sports; }
  [type='residential']   { polygon-fill: @residential; }
  [type='school']        { polygon-fill: @school; }
  [type='sports_center'] { polygon-fill: @sports; }
  [type='stadium']       { polygon-fill: @sports; }
  [type='university']    { polygon-fill: @school; }
  [type='wood']          { polygon-fill: @wooded; }
}

#landuse_overlays[type='nature_reserve'][zoom>6] {
  line-color: darken(@wooded,25%);
  line-opacity:  0.3;
  line-dasharray: 1,1;
  polygon-fill: darken(@wooded,25%);
  polygon-opacity: 0.1;
  [zoom=7] { line-width: 0.4; }
  [zoom=8] { line-width: 0.6; }
  [zoom=9] { line-width: 0.8; }
  [zoom=10] { line-width: 1.0; }
  [zoom=11] { line-width: 1.5; }
  [zoom>=12] { line-width: 2.0; }
}

#landuse_overlays[type='wetland'][zoom>11] {
  [zoom>11][zoom<=14] { polygon-pattern-file:url(img/swamp-16.png); }
  [zoom>14] { polygon-pattern-file:url(img/swamp-32.png);}
  }

/* ---- BUILDINGS ---- */
#buildings[zoom>10][zoom<=16] {
  polygon-fill:@building;
  [zoom>13] {
    line-color:darken(@building,5);
    line-width:0.2;
  }
  [zoom>15] {
    line-color:darken(@building,10);
    line-width:0.4;
  }
}
/* At the highest zoom levels, render buildings in fancy pseudo-3D */
#buildings[zoom>=17][type != 'hedge'] {
  building-fill:@building;
  building-height:1.25;
}

#buildings[zoom>=17][type = 'hedge'] {
  building-fill:@wooded;
  building-height:1.25;
}

/* ================================================================== */
/* WATER AREAS
/* ================================================================== */

Map { background-color: @water; }

#water_gen0[zoom>3][zoom<=9],
#water_gen1[zoom>9][zoom<=12],
#water[zoom>12] {
  polygon-fill: @water;
}

/* ================================================================== */
/* WATER WAYS
/* ================================================================== */

#waterway_low[zoom>=8][zoom<=12] {
  line-color: @water;
  [zoom=8] { line-width: 0.1; }
  [zoom=9] { line-width: 0.2; }
  [zoom=10]{ line-width: 0.4; }
  [zoom=11]{ line-width: 0.6; }
  [zoom=12]{ line-width: 0.8; }
}

#waterway_med[zoom>=13][zoom<=14] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    line-cap: round;
    line-join: round;
    [zoom=13]{ line-width: 1; }
    [zoom=14]{ line-width: 1.5; }
  }
  [type='stream'] {
    [zoom=13]{ line-width: 0.2; }
    [zoom=14]{ line-width: 0.4; }
  }
}

#waterway_high[zoom>=15] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    line-cap: round;
    line-join: round;
    [zoom=15]{ line-width: 2; }
    [zoom=16]{ line-width: 3; }
    [zoom=17]{ line-width: 4; }
    [zoom=18]{ line-width: 5; }
    [zoom=19]{ line-width: 6; }
    [zoom>19]{ line-width: 7; }
  }
  [type='stream'] {
    [zoom=15]{ line-width: 0.6; }
    [zoom=16]{ line-width: 0.8; }
    [zoom=17]{ line-width: 1; }
    [zoom=18]{ line-width: 1.5; }
    [zoom>18]{ line-width: 2; }
  }
  [type='ditch'],
  [type='drain'] {
    [zoom=15]{ line-width: 0.1; }
    [zoom=16]{ line-width: 0.3; }
    [zoom=17]{ line-width: 0.5; }
    [zoom=18]{ line-width: 0.7; }
    [zoom=19]{ line-width: 1; }
    [zoom>19]{ line-width: 1.5; }
  }
}

/* ================================================================== */
/* ADMINISTRATIVE BOUNDARIES
/* ================================================================== */

#admin[admin_level=2][zoom>1] {
  line-color:@admin_2;
  line-width:0.5;
  [zoom=2] { line-opacity: 0.25; }
  [zoom=3] { line-opacity: 0.3; }
  [zoom=4] { line-opacity: 0.4; }
}

/* ================================================================== */
/* BARRIER POINTS
/* ================================================================== */

#barrier_points[zoom>=17][stylegroup = 'divider'] {
  marker-height: 2;
  marker-fill: #c7c7c7;
  marker-line-opacity:0;
  marker-allow-overlap:true;
}

/* ================================================================== */
/* BARRIER LINES
/* ================================================================== */

#barrier_lines[zoom>=17][stylegroup = 'gate'] {
  line-width:2.5;
  line-color:#aab;
  line-dasharray:3,2;
}

#barrier_lines[zoom>=17][stylegroup = 'fence'] {
  line-width:1.75;
  line-color:#aab;
  line-dasharray:1,1;
}

#barrier_lines[zoom>=17][stylegroup = 'hedge'] {
  line-width:3;
  line-color:darken(@park,5);

}

/* BASE.MSS CONTENTS
 * - Landuse & landcover
 * - Water areas
 * - Water ways
 * - Administrative Boundaries
 *
 */

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

#land[zoom>=0][zoom<6],
#shoreline_300[zoom>=6][zoom<10],
#processed_p[zoom>=10] {
  polygon-fill: @land;
  polygon-gamma: 0.75;
}

#landuse_gen0[zoom>3][zoom<=9],
#landuse_gen1[zoom>9][zoom<=12],
#landuse[zoom>12] {
  [type='cemetery']      { polygon-fill: @cemetery; }
  [type='college']       { polygon-fill: @school; }
  [type='commercial']    { polygon-fill: @industrial; }
  [type='forest']        { polygon-fill: @wooded; }
  [type='golf_course']   { polygon-fill: @park; }
  [type='grass']         { polygon-fill: @park; }
  [type='hospital']      { polygon-fill: @hospital; }
  [type='industrial']    { polygon-fill: @industrial; }
  [type='park']          { polygon-fill: @park; }
  [type='parking']       { polygon-fill: @parking; }
  [type='pedestrian']    { polygon-fill: @pedestrian_fill; }
  [type='pitch']         { polygon-fill: @sports; }
  [type='residential']   { polygon-fill: @residential; }
  [type='school']        { polygon-fill: @school; }
  [type='sports_center'] { polygon-fill: @sports; }
  [type='stadium']       { polygon-fill: @sports; }
  [type='university']    { polygon-fill: @school; }
  [type='wood']          { polygon-fill: @wooded; }
}

#landuse_overlays[type='nature_reserve'][zoom>6] {
  line-color: darken(@wooded,25%);
  line-opacity:  0.3;
  line-dasharray: 1,1;
  polygon-fill: darken(@wooded,25%);
  polygon-opacity: 0.1;
  [zoom=7] { line-width: 0.4; }
  [zoom=8] { line-width: 0.6; }
  [zoom=9] { line-width: 0.8; }
  [zoom=10] { line-width: 1.0; }
  [zoom=11] { line-width: 1.5; }
  [zoom>=12] { line-width: 2.0; }
}

#landuse_overlays[type='wetland'][zoom>11] {
  [zoom>11][zoom<=14] { polygon-pattern-file:url(img/swamp-16.png); }
  [zoom>14] { polygon-pattern-file:url(img/swamp-32.png);}
  }

/* ---- BUILDINGS ---- */
#buildings[zoom>10][zoom<=16] {
  polygon-fill:@building;
  [zoom>13] {
    line-color:darken(@building,5);
    line-width:0.2;
  }
  [zoom>15] {
    line-color:darken(@building,10);
    line-width:0.4;
  }
}
/* At the highest zoom levels, render buildings in fancy pseudo-3D */
#buildings[zoom>=17][type != 'hedge'] {
  building-fill:@building;
  building-height:1.25;
}

#buildings[zoom>=17][type = 'hedge'] {
  building-fill:@wooded;
  building-height:1.25;
}

/* ================================================================== */
/* WATER AREAS
/* ================================================================== */

Map { background-color: @water; }

#water_gen0[zoom>3][zoom<=9],
#water_gen1[zoom>9][zoom<=12],
#water[zoom>12] {
  polygon-fill: @water;
}

/* ================================================================== */
/* WATER WAYS
/* ================================================================== */

#waterway_low[zoom>=8][zoom<=12] {
  line-color: @water;
  [zoom=8] { line-width: 0.1; }
  [zoom=9] { line-width: 0.2; }
  [zoom=10]{ line-width: 0.4; }
  [zoom=11]{ line-width: 0.6; }
  [zoom=12]{ line-width: 0.8; }
}

#waterway_med[zoom>=13][zoom<=14] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    [zoom=13]{ line-width: 1; }
    [zoom>12]{
      line-cap: round;
      line-join: round;
    }
    [zoom=14]{ line-width: 1.5; }
  }
  [type='stream'] {
    [zoom=13]{ line-width: 0.2; }
    [zoom=14]{ line-width: 0.4; }
  }
}

#waterway_high[zoom>=15] {
  line-color: @water;
  [type='river'],
  [type='canal'] {
    line-cap: round;
    line-join: round;
    [zoom=15]{ line-width: 2; }
    [zoom=16]{ line-width: 3; }
    [zoom=17]{ line-width: 4; }
    [zoom=18]{ line-width: 5; }
    [zoom=19]{ line-width: 6; }
    [zoom>19]{ line-width: 7; }
  }
  [type='stream'] {
    [zoom=15]{ line-width: 0.6; }
    [zoom=16]{ line-width: 0.8; }
    [zoom=17]{ line-width: 1; }
    [zoom=18]{ line-width: 1.5; }
    [zoom>18]{ line-width: 2; }
  }
  [type='ditch'],
  [type='drain'] {
    [zoom=15]{ line-width: 0.1; }
    [zoom=16]{ line-width: 0.3; }
    [zoom=17]{ line-width: 0.5; }
    [zoom=18]{ line-width: 0.7; }
    [zoom=19]{ line-width: 1; }
    [zoom>19]{ line-width: 1.5; }
  }
}

/* ================================================================== */
/* ADMINISTRATIVE BOUNDARIES
/* ================================================================== */

#admin[admin_level=2][zoom>1] {
  line-color:@admin_2;
  line-width:0.5;
  [zoom=2] { line-opacity: 0.25; }
  [zoom=3] { line-opacity: 0.3; }
  [zoom=4] { line-opacity: 0.4; }
}

/* ================================================================== */
/* BARRIER POINTS
/* ================================================================== */

#barrier_points[zoom>=17][stylegroup = 'divider'] {
  marker-height: 2;
  marker-fill: #c7c7c7;
  marker-line-opacity:0;
  marker-allow-overlap:true;
}

/* ================================================================== */
/* BARRIER LINES
/* ================================================================== */

#barrier_lines[zoom>=17][stylegroup = 'gate'] {
  line-width:2.5;
  line-color:#aab;
  line-dasharray:3,2;
}

#barrier_lines[zoom>=17][stylegroup = 'fence'] {
  line-width:1.75;
  line-color:#aab;
  line-dasharray:1,1;
}

#barrier_lines[zoom>=17][stylegroup = 'hedge'] {
  line-width:3;
  line-color:darken(@park,5);

}