Changeset 9099 in josm for trunk/styles/standard


Ignore:
Timestamp:
2015-12-11T17:36:59+01:00 (9 years ago)
Author:
bastiK
Message:

mapcss partial fill: move threshold parameter ([9063]) into the mapcss style
(new property fill-extent-threshold)

  • add support for this parameter when area is unclosed
  • smaller extent for unclosed areas

(see #12104)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/styles/standard/elemstyles.mapcss

    r9097 r9099  
    48664866/*************/
    48674867
     4868/* small extent for unclosed area (see below for closed) */
    48684869area[setting("partial_fill")] {
     4870    fill-extent: 15;
     4871}
     4872
     4873/* Turn partial fill off and us plain fill, when the partial fill covers about
     4874   100% of the area. This reduces artifacts (typically for incomplete multipolygons).
     4875   Switching between full and partial fill while drawing an area might be irritating,
     4876   so only do this at low zoom. */
     4877area|z-13[setting("partial_fill")] {
     4878    fill-extent-threshold: 100%;
     4879}
     4880
     4881/* Larger extent for closed areas.
     4882   Turn partial fill off, when it covers more than about 70% of the area. This is avoids
     4883   areas with small unfilled patches in the center. */
     4884area[setting("partial_fill")]:closed2 {
    48694885    fill-extent: 25;
    4870 }
     4886    fill-extent-threshold: 70%;
     4887}
     4888
Note: See TracChangeset for help on using the changeset viewer.