我正在开发一个使用unfoldingmaps进行处理的应用程序。
以下是处理中展开的示例代码
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是否适用于使用展开的其他人?
答案 0 :(得分: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();
}
}
我添加了
import de.fhpotsdam.unfolding.providers.Google;
并修改了
map = new UnfoldingMap(this, new Google.GoogleMapProvider());
现在正在运作
答案 1 :(得分:1)
几周以来,地图图块服务展开使用的默认设置在转移到WikiMedia Labs时没有正确响应。现在它重定向,并再次为平铺图像提供服务。