2015-01-03 16 views
5

Tôi đang làm việc trên một ứng dụng sử dụng unfoldingmaps với chế biến.Mở ra SimpleMapApp - Tệp hình ảnh bị thiếu

Dưới đây là đoạn code mẫu từ diễn ra trong chế biến

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

Đây là thông báo lỗi Tôi nhận

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. 

tôi đã cố gắng nhấn url từ trình duyệt - nó nói tập tin hình ảnh đã đã di chuyển. Tôi có nên lấy một bãi chứa này trong hệ thống địa phương của tôi không? Cái này hoạt động ra sao? Những URL này có hoạt động cho những người khác đang sử dụng không?

Trả lời

1

Trong một vài tuần, dịch vụ lát bản đồ Đang diễn ra sử dụng làm mặc định không phản hồi đúng khi chúng được chuyển sang WikiMedia Labs. Bây giờ nó chuyển hướng, và phục vụ các hình ảnh ngói một lần nữa.

+0

lỗi này vẫn xảy ra khi các unfolding-app-template-với-ví dụ HelloUnfoldingWorld .java chương trình. Vì vậy, tôi đoán chuyển hướng vẫn không diễn ra. Hoặc ít nhất là các ví dụ mẫu không có mã mới nhất được cập nhật với chuyển hướng – dirai

6

Đây là phiên bản sửa đổi của mã ví dụ.

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

} 

Tôi đã thêm

import de.fhpotsdam.unfolding.providers.Google; 

và sửa đổi

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

Bây giờ nó đang làm việc

+0

Giải pháp này đã giải quyết được vấn đề (vẫn còn tồn tại với các bản phác thảo ví dụ về các sơ đồ unfolding trong quá trình xử lý). Vì vậy, điều này có thể được chấp nhận là câu trả lời đúng không? – black

Các vấn đề liên quan