Ignore:
Timestamp:
14.01.2009 23:46:14 (3 years ago)
Author:
ulfl
Message:

from Dirk Stoecker: fix multipolygon display after (my) performance tweaks

from myself: some minor changes like adding a "mappaint.showname" option to be able to globally switch off icon annotations

File:
1 edited

Legend:

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

    r1169 r1263  
    6767                return zoom; 
    6868        return 32; 
     69    } 
     70 
     71    /** 
     72     * Return a ID which is unique as long as viewport dimensions are the same 
     73     */ 
     74    public Integer getViewID() 
     75    { 
     76        String x = center.east() + "_" + center.north() + "_" + scale + "_" + 
     77        getWidth() + "_" + getHeight(); 
     78        java.util.zip.CRC32 id = new java.util.zip.CRC32(); 
     79        id.update(x.getBytes()); 
     80        return new Long(id.getValue()).intValue(); 
    6981    } 
    7082 
Note: See TracChangeset for help on using the changeset viewer.