Ignore:
Timestamp:
2012-05-06T21:23:18+02:00 (12 years ago)
Author:
bastiK
Message:

mapcss: change z-index handling

In contrast to previous default z-index of 1000 for nodes and -1000 for areas, the default z-index is
now always 0. An additional "major-z-index" is used to sort elemstyles by category, this property
can be adjusted in the style, so icons can be rendered below lines, if you want to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/BoxTextElemStyle.java

    r5054 r5217  
    9090
    9191    public BoxTextElemStyle(Cascade c, TextElement text, BoxProvider boxProvider, Rectangle box, HorizontalTextAlignment hAlign, VerticalTextAlignment vAlign) {
    92         super(c, 2000f);
     92        super(c, 5f);
    9393        CheckParameterUtil.ensureParameterNotNull(text);
    9494        CheckParameterUtil.ensureParameterNotNull(hAlign);
     
    197197        if (boxProvider != null) {
    198198            if (!boxProvider.equals(other.boxProvider)) return false;
    199         } else if (other.boxProvider != null) {
     199        } else if (other.boxProvider != null)
    200200            return false;
    201         } else {
     201        else {
    202202            if (!box.equals(other.box)) return false;
    203203        }
Note: See TracChangeset for help on using the changeset viewer.