5

処理を伴う展開マップを使用するアプリケーションに取り組んでいます。

以下は、処理中の展開のサンプル コードです。

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();
}

これは私が得ているエラーメッセージです

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.

ブラウザから URL にアクセスしてみました - 画像ファイルが移動されたと表示されます。ローカル システムでこれのダンプを取得する必要がありますか? これはどのように作動しますか?これらの URL は、展開を使用している他の URL で機能しますか?

4

2 に答える 2

7

これはサンプル コードの修正版です。

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();
    }

}

私が追加しました

import de.fhpotsdam.unfolding.providers.Google;

および変更された

map = new UnfoldingMap(this, new Google.GoogleMapProvider());

今、それは働いています

于 2016-04-21T02:33:27.947 に答える
1

数週間、Unfolding がデフォルトで使用しているマップ タイル サービスは、WikiMedia Labs に移行したため、適切に応答しませんでした。これでリダイレクトされ、タイル画像が再び提供されます。

于 2015-02-16T11:10:28.263 に答える