Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect order using filter #43

Open
GeoDodo opened this issue Oct 18, 2017 · 0 comments
Open

Incorrect order using filter #43

GeoDodo opened this issue Oct 18, 2017 · 0 comments
Labels

Comments

@GeoDodo
Copy link
Member

GeoDodo commented Oct 18, 2017

If you create a config with a filter and you overwrites the PolygonSymbolizer, the order for LineSymbolizer and PolygonSymbolizer is incorrect. As a result you will get polygons with the wrong line stroke.

Example MSS-Config:

#buildings[zoom>=16] {
  polygon-fill: #cccccc;
  line-color: #ff0000;
  line-width: 5;
  [type="commercial"] {
    polygon-fill: #ffff00;
  }
}

Output for Mapnik:

<Map srs="+init=epsg:3857">
  <Parameters></Parameters>
  <Style name="buildings" filter-mode="first">
    <Rule>
      <!--Zoom{>=16}-->
      <MaxScaleDenominator>12500</MaxScaleDenominator>
      <Filter>([type] = &#39;commercial&#39;)</Filter>
      <LineSymbolizer stroke="#ff0000" stroke-width="0.4"></LineSymbolizer>
      <PolygonSymbolizer fill="#ffff00"></PolygonSymbolizer>
    </Rule>
    <Rule>
      <!--Zoom{>=16}-->
      <MaxScaleDenominator>12500</MaxScaleDenominator>
      <PolygonSymbolizer fill="#cccccc"></PolygonSymbolizer>
      <LineSymbolizer stroke="#ff0000" stroke-width="0.4"></LineSymbolizer>
    </Rule>
  </Style>
  <Layer name="buildings" srs="" status="off" maxzoom="12500">
    <StyleName>buildings</StyleName>
  </Layer>
</Map>
@GeoDodo GeoDodo added the bug label Oct 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant