Changeset 5667 in osm for applications/editors/josm/plugins/slippymap
- Timestamp:
- 2007-11-21T16:54:38+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/slippymap/slippymap/SlippyMapTile.java
r4740 r5667 14 14 /** 15 15 * Class that contains information about one single slippy map tile. 16 * 16 * 17 17 * @author Frederik Ramm <frederik@remote.org> 18 18 * 19 19 */ 20 public class SlippyMapTile 20 public class SlippyMapTile 21 21 { 22 22 23 23 private Image tileImage; 24 24 25 25 int x; 26 26 int y; … … 28 28 29 29 private String metadata; 30 31 public SlippyMapTile(int x, int y, int z) 30 31 public SlippyMapTile(int x, int y, int z) 32 32 { 33 33 this.x = x; … … 35 35 this.z = z; 36 36 } 37 37 38 38 public String getMetadata() 39 39 { 40 40 return metadata; 41 41 } 42 42 43 43 public void loadImage() 44 44 { 45 45 try 46 46 { 47 // tileImage = new ImageIcon(new URL("http://dev.openstreetmap.org/~ojw/Tiles/tile.php/"+z+"/"+x+"/"+y+".png")); 48 //tileImage = Toolkit.getDefaultToolkit().createImage(new URL("http://openstreetmap.gryph.de/slippymap/tiles/"+z+"/"+x+"/"+y+".png")); 49 tileImage = Toolkit.getDefaultToolkit().createImage(new URL("http://dev.openstreetmap.org/~ojw/Tiles/tile.php/"+z+"/"+x+"/"+y+".png")); 50 // 47 tileImage = Toolkit.getDefaultToolkit().createImage(new URL("http://tah.openstreetmap.org/Tiles/tile/"+z+"/"+x+"/"+y+".png")); 51 48 } 52 49 catch (MalformedURLException mfu) 53 50 { 54 51 mfu.printStackTrace(); 55 } 52 } 56 53 } 57 54 … … 60 57 return tileImage; 61 58 } 62 59 63 60 public void loadMetadata() 64 61 { 65 try 62 try 66 63 { 67 64 URL dev = new URL("http://tah.openstreetmap.org/Tiles/info_short.php?x=" + … … 93 90 } 94 91 } 95 92 96 93 public boolean equals(Object o) 97 94 { … … 100 97 return (this.x == other.x && this.y == other.y && this.z == other.z); 101 98 } 102 99 103 100 }
Note:
See TracChangeset
for help on using the changeset viewer.