2015-01-03 8 views
5

処理中にアンフォールディングマップを使用するアプリケーションで作業しています。以下はSimpleMapAppの展開 - 画像ファイルがありません

これは私が、私は、ブラウザからURLを打ってみました

The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/1/2.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/2/3.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/2/2.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/2/1.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/3/1.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/3/2.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/1/3.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/3/3.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/0/2.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/2/0.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/1/0.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/0/3.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/0/1.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/0/0.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/3/0.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 
The file "http://a.www.toolserver.org/tiles/bw-mapnik/2/1/1.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable. 

取得していますエラーメッセージで処理して

import de.fhpotsdam.unfolding.*; 
import de.fhpotsdam.unfolding.geo.*; 
import de.fhpotsdam.unfolding.utils.*; 

UnfoldingMap map; 

void setup() { 
    size(800, 600, P2D); 
    map = new UnfoldingMap(this); 
    MapUtils.createDefaultEventDispatcher(this, map); 
} 

void draw() { 
    map.draw(); 
} 

を展開からのサンプルコードである - それは、画像ファイルがされていると言うが移動した。私のローカルシステムでこれをダンプする必要がありますか?これはどのように作動しますか?これらのURLは展開を使用している他の人には有効ですか?

答えて

1

マップタイルサービスの展開のデフォルト設定は、WikiMedia Labsに移行しても正しく応答しませんでした。今度はそれがリダイレクトされ、タイルイメージが再び配信されます。

+0

を働いている

import de.fhpotsdam.unfolding.providers.Google; 

を追加し、
map = new UnfoldingMap(this, new Google.GoogleMapProvider()); 

を変更した。このエラーは、まだ行われたときに展開アプリのテンプレートと、例HelloUnfoldingWorld .javaプログラム。だから私はリダイレクトがまだ起こっていないと思います。または、テンプレートの例では、リダイレクト – dirai

6

これは変更されたコード例です。

import processing.core.PApplet; 
import de.fhpotsdam.unfolding.UnfoldingMap; 
import de.fhpotsdam.unfolding.geo.Location; 
import de.fhpotsdam.unfolding.utils.MapUtils; 
import de.fhpotsdam.unfolding.providers.Google; 
public class HelloUnfoldingWorld extends PApplet { 

    UnfoldingMap map; 

    public void setup() { 
     size(800, 600, OPENGL); 

     map = new UnfoldingMap(this, new Google.GoogleMapProvider()); 
     map.zoomAndPanTo(10, new Location(52.5f, 13.4f)); 

     MapUtils.createDefaultEventDispatcher(this, map); 
    } 

    public void draw() { 
     background(0); 
     map.draw(); 
    } 

} 

私は今、それが

+0

で最新のコードが更新されていません。この解決策は問題を解決しました(処理中のアンフォールディングマップの例のスケッチには依然として存在します)。これは正解として受け入れることができますか? – black

関連する問題