TileMill

Материал из CIToRUS wiki
Перейти к: навигация, поиск

Пример разметки лесничества для zoom 10-16

#vydelsdalnerech {  
  line-width:0.5;
  polygon-opacity:0.1;
  line-color:#594;
  polygon-fill:#ae8;
  text-name:"";
  text-face-name:"Ubuntu Regular";
  [zoom>10][zoom<12] {
    text-name: "[SKNR]";
    text-size:6;
    text-character-spacing:1;
    text-line-spacing:1;
  }
  [zoom>11][zoom<14] {
    text-name: "[SKNR]";
    text-size:8;
    text-character-spacing:1;
    text-line-spacing:1;
  }
  [zoom>13][zoom<16] {
    text-name: "[SKNR]";
    text-size:10;
    text-character-spacing:1;
    text-line-spacing:1;
  }
  [zoom>15][zoom<19] {
    text-name: "[SKNR]";
    text-size:12;
    text-character-spacing:1;
    text-line-spacing:1;
  }
}