OpenStreetBrowser/Stylesheet/Base

From OpenStreetMap Wiki
Jump to: navigation, search

Layers

Valid values:

table 
point, line, polygon, poipoly
overlay layer table
base places point

Values

key=value description category zoom:layer:style
place=continent places/places/continents 2-3:places:{#bigplace}
place=city population>=1000000 places/places/world_cities 4-5:places:{#smallplace} 6-9:places:{#mediumplace} 10-15:places:{#bigplace}
place=city population>=100000 places/places/cities 6-7:places:{#smallplace} 8-9:places:{#mediumplace} 10-15:places:{#bigplace}
place=city, place=town population>30000 places/places/cities 7:places:{#smallplace} 8-9:places:{#mediumplace} 10-15:places:{#bigplace}

Default Styles

.bigplace {
  text-column: "name";
  text-size: 12;
  text-placement: point;
  text-face-name: "DejaVu Sans Book";
  text-fill: #000000;
  text-avoid-edges: true;
  text-halo-radius: 2;
  point-allow-overlap: false;
}

.mediumplace {
  text-dy: 10;
  point-file: url('img/city7.png');
  text-column: "name";
  text-size: 10;
  text-placement: point;
  text-face-name: "DejaVu Sans Book";
  text-fill: #000000;
  text-avoid-edges: true;
  text-halo-radius: 1;
  point-allow-overlap: false;
}

.smallplace {
  text-dy: 8;
  point-file: url('img/city5.png');
  text-column: "name";
  text-size: 8;
  text-placement: point;
  text-face-name: "DejaVu Sans Book";
  text-fill: #000000;
  text-avoid-edges: true;
  text-halo-radius: 1;
  point-allow-overlap: false;
}