+
+ URL url = null;
+ // Get byte from lookup array
+ int idx = (inTile.getLatitude() + 59)*360 + (inTile.getLongitude() + 180);
+ try
+ {
+ int dir = _tileData[idx];
+ if (dir > 0) {
+ try {
+ url = new URL(URL_PREFIX + CONTINENTS[dir] + "/" + inTile.getTileName());
+ } catch (MalformedURLException e) {} // ignore error, url stays null
+ }
+ } catch (ArrayIndexOutOfBoundsException e) {} // ignore error, url stays null
+
+ return url;