世界の測量

Sibling of "Relevant, Timely, and Accurate, " but much lighter and shorter ※自らの所属する組織の見解を示すものでない

tsukubau / amazon s3 の Carto 記述 (.mss)

tsukubau の強化版を http://www.handygeospatial.info/tsukubau に公開した。その mss 記述は、次のとおり。

Map {
  background-color: #fff;
}

#admarea ['種別' = '大字・町・丁目']{
  text-name: '[名称]';
  text-face-name: 'Hiragino Maru Gothic Pro W4';
  text-size: 20;
  [zoom = 15] {text-size: 16;}
  [zoom <= 14] {text-size: 14;}
  text-halo-radius: .8;
  [zoom >= 14] {
    line-color:#ff0;
    line-width: .5;
    polygon-opacity:0;
    polygon-fill:#fff;
  }
}

#rdedg {
  line-width:1;
  line-color: #777;
  [zoom = 16] {line-width: .7}
  [zoom = 15] {line-width: .5}
  [zoom <= 14] {line-width: .1}
}

#blda {
  [zoom >= 15] {
    building-fill-opacity: .8;
    building-fill: #fee;
    building-height: 0.00003;
    ['種別' = '堅ろう建物'] {
      building-height: 0.00010;
    }
  }
  [zoom < 15] {
    line-color:#999;
    line-width:0.1;
    polygon-opacity:1;
    polygon-fill:#fee;
  }
}

#wa {
  line-color:#44f;
  line-width:0.5;
  polygon-opacity:1;
  polygon-fill:#eef;
}

#railcl {
  line-width:1;
  line-color:#168;
}

#ibarakipoifiltered {
  text-name: '[name]';
  text-face-name: 'Hiragino Maru Gothic Pro W4';
  text-size: 14;
  text-halo-radius: 1;
  text-fill: #666;
  text-dy: 10;
  [zoom <= 15] {text-dy: 5;}
  text-placement-type: simple;
  marker-width: 6;
  [zoom <= 15] {marker-width: 4}
  marker-fill: #666;
  marker-line-color: #666;
  marker-allow-overlap:false;
}

#ibarakihighway {
  text-name: '[NAME]';
  text-face-name: 'Hiragino Maru Gothic Pro W4';
  text-size: 14;
  text-halo-radius: 1;
  text-fill: #666;
  text-placement: line;
  //line-width:1;
  //line-color:#f33;
}

詳細は、#webgistec 3 のプレゼン(http://www.handygeospatial.info/webgistec3)で。