2015-01-03 12 views
5

Ich arbeite an einer Anwendung, die Unfoldingmaps mit der Verarbeitung verwendet.Unfolding SimpleMapApp - Bilddateien fehlen

Unter den Beispielcode ist in der Verarbeitung von Entfaltungs

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

Dies ist die Fehlermeldung I

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. 

ich aus dem Browser die URL schlagen versuchte ich immer - sagt es Bilddateien gewesen gerührt. Soll ich das in meinem lokalen System ablegen? Wie funktioniert das? Funktionieren diese URLs für andere Nutzer, indem sie sich entfalten?

Antwort

1

Seit einigen Wochen reagiert der Kartenplattendienst, den Unfolding als Standard verwendet, nicht ordnungsgemäß, da sie zu WikiMedia Labs verschoben wurden. Jetzt wird es umgeleitet und bedient die Kachelbilder erneut.

+0

Dieser Fehler immer noch auftritt, wenn die Entfaltung-App-Template-mit-Beispiele HelloUnfoldingWorld .java Programm. Also ich denke, die Umleitung findet immer noch nicht statt. Oder zumindest haben die Vorlagenbeispiele nicht den neuesten Code, der mit der Umleitung aktualisiert wurde. – dirai

6

Dies ist die modifizierte Version des Beispielcodes.

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

} 

Ich habe

hinzugefügt
import de.fhpotsdam.unfolding.providers.Google; 

und

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

Jetzt funktioniert es

+0

Diese Lösung löste das Problem (das immer noch bei den Beispielskizzen von unfoldingmaps in der Verarbeitung existiert). Kann dies als korrekte Antwort akzeptiert werden? – black