Changeset 24 for trunk/net

Show
Ignore:
Timestamp:
04/14/08 22:24:26 (9 months ago)
Author:
relet.net
Message:

restored ColorScheme? temporarily, as it is still required by some background elements. consistent renaming of OsmMercatorProjection? (was missing in TileCache?)

Location:
trunk/net/relet/freimap
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/net/relet/freimap/background/TileCache.java

    r1 r24  
    1010 
    1111import net.relet.freimap.Configurator; 
    12 import net.relet.freimap.OSMMercatorProjection; 
     12import net.relet.freimap.OsmMercatorProjection; 
    1313 
    1414/** 
     
    115115        void paintTiles(Graphics2D g, int zoom, int wx, int wy, int ww, int wh) { 
    116116                int max = (int) Math.pow(2, zoom) - 1; 
    117                 int x1 = OSMMercatorProjection.worldToTile(Math.max(wx, 0));  
    118                 int x2 = Math.min(OSMMercatorProjection.worldToTile(wx + ww), max);  
    119                 int y1 = OSMMercatorProjection.worldToTile(Math.max(wy, 0));  
    120                 int y2 = Math.min(OSMMercatorProjection.worldToTile(wy + wh), max);  
     117                int x1 = OsmMercatorProjection.worldToTile(Math.max(wx, 0));  
     118                int x2 = Math.min(OsmMercatorProjection.worldToTile(wx + ww), max);  
     119                int y1 = OsmMercatorProjection.worldToTile(Math.max(wy, 0));  
     120                int y2 = Math.min(OsmMercatorProjection.worldToTile(wy + wh), max);  
    121121                 
    122122                if (zoom <= 18) {