Changeset 7386 in josm


Ignore:
Timestamp:
2014-08-13T21:04:37+02:00 (10 years ago)
Author:
bastiK
Message:

see #10043 - Mappaint: print name of street along residential

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r7378 r7386  
    12401240        showIcons = paintSettings.getShowIconsDistance() > circum;
    12411241        isOutlineOnly = paintSettings.isOutlineOnly();
    1242         orderFont = new Font(Main.pref.get("mappaint.font", "Helvetica"), Font.PLAIN, Main.pref.getInteger("mappaint.fontsize", 8));
     1242        orderFont = new Font(Main.pref.get("mappaint.font", "Droid Sans"), Font.PLAIN, Main.pref.getInteger("mappaint.fontsize", 8));
    12431243
    12441244        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
  • trunk/styles/standard/elemstyles.mapcss

    r7385 r7386  
    35903590    font-size: 8;
    35913591    font-weight: bold;
    3592     font-family: "Droid Sans";
    35933592    text-color: black;
    35943593    text-anchor-horizontal: center;
     
    36113610    text: auto;
    36123611}
    3613 node|z16- {
     3612node|z16-[!is_prop_set("icon-image")] {
    36143613    symbol-size:1;
    36153614    symbol-shape: square;
    36163615    symbol-stroke-color: node_standard#ffff00;
     3616    major-z-index: 4.95; /* put node squares above line text */
    36173617}
    36183618node|z16-:connection {
     
    36503650node|z19,area|z19   { font-size: 9; }
    36513651node|z20-,area|z20-   { font-size: 10; }
     3652
     3653/*******************/
     3654/* way text labels */
     3655/*******************/
     3656
     3657way|z17-[highway=residential] {
     3658    text: auto;
     3659    text-color: black;
     3660    font-size: 9;
     3661    text-position: line;
     3662    text-halo-color: #ffffff;
     3663    text-halo-opacity: 1;
     3664    text-halo-radius: 1.5;
     3665}
     3666way|z18[highway=residential] {
     3667    font-size: 10;
     3668}
     3669way|z19[highway=residential] {
     3670    font-size: 11;
     3671}
     3672way|z20-[highway=residential] {
     3673    font-size: 12;
     3674}
    36523675
    36533676/**************/
     
    36643687    icon-image: "place/settlement/town.png";
    36653688    text: auto;
     3689    font-size: 10;
    36663690}
    36673691area[place=continent],
     
    36893713    icon-image: "place/settlement/capital.png";
    36903714    text: auto;
     3715    font-size: 10;
    36913716}
    36923717node|z11-[place=city] {
    36933718    icon-image: "place/settlement/city.png";
    36943719    text: auto;
     3720    font-size: 10;
    36953721}
    36963722node|z11-[place=town],
     
    37023728    icon-image: "place/settlement/town.png";
    37033729    text: auto;
     3730    font-size: 10;
    37043731}
    37053732node|z11-[place=locality] {
    37063733    icon-image: "place/locality.png";
    37073734    text: auto;
     3735    font-size: 10;
    37083736}
    37093737node|z11-[place=island] {
    37103738    icon-image: "place/island.png";
    37113739    text: auto;
     3740    font-size: 10;
    37123741}
    37133742node|z11-[place=islet] {
    37143743    icon-image: "place/islet.png";
    37153744    text: auto;
     3745    font-size: 10;
    37163746}
    37173747
Note: See TracChangeset for help on using the changeset viewer.