Package 

Class TileSystem


  • 
    public abstract class TileSystem
    
                        

    Proxy class for TileSystem. For coordinate conversions (tile to lat/lon and reverse) TileSystem only accepts input parameters within certain ranges and crops any values outside of it. For lat/lon the range is ~(-85,+85) / (-180,+180) and for tile coordinates (0,mapsize-1). Under certain conditions osmdroid creates values outside of these ranges, for example when zooming out and displaying the earth more that once side by side or when scrolling across the 180 degree longitude (international date line). This class fixes this by wrapping input coordinates into a valid range by adding/subtracting the valid span. Example: longitude +185 => -175