标签: cartocss

Tilemill/CartoCSS布尔条件

在TileMill/CartoCSS中有一个选项可以有一个布尔"OR"吗?我确实尝试过正则表达式,但没有成功.我想简化这个CSS:

@ciPolyBackground: #F79320;
@ciPolyOpacity: 0.5;

#countries {
    [ne_10m_adm = "BOL"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "BRA"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "BWA"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "CHN"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "COD"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "COL"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "ECU"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm = "FJI"] { polygon-fill: @ciPolyBackground; polygon-opacity: @ciPolyOpacity; }
    [ne_10m_adm …
Run Code Online (Sandbox Code Playgroud)

regex mapbox tilemill cartocss

1
推荐指数
1
解决办法
430
查看次数

标签 统计

cartocss ×1

mapbox ×1

regex ×1

tilemill ×1