Unfolding Library does not work anymore. URL problem ?

Hello,

I'm using Processing 2.2.1 with the latest version of the Unfolding library on a Win 7 box.

The problem is the following :

When running most of the examples, I get a black map (or unzoomable and making glitches when panning), and the processing console fires a lot of messages complaining that :

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

or..

The file "http://tile.stamen.com/toner-background/12/1236/1516.png" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

I think the a.toolserver.org mentioned in the first error message is the OpenStreetMaps default provider's server. So, I went to the a.toolserver.org to see if, by chance, it was down or something. Instead, I got a (not so) pretty page saying that "We've Moved", along with the following message :

We're sorry, but the user-supported tool you have attempted to reach
did not leave a forwarding URL where we could automatically redirect you.

So I said to myself that maybe was the problem.

But the URL mentioned in other error messages (like the second one here http://tile.stamen.com/toner-background/ did not work either.

So.. I ran all the examples and this happens with most examples, except the one using the Microsoft.AerialProvider (which seems to work correctly), or certain Stamen providers :(

I have a project to code involving heavy use of Unfolding so if you gurus out there have an idea, please help me out !

So all you code gurus.. @codeanticode , @amnon , @poersch , @gotoloop, and you @tnagel, please help me on this one :)

Thanks in advance and merry Christmas !

Tagged:

Answers

  • Answer ✓

    Ok, might be two problems. The general one is that OpenStreetMap's tool server moved to a new location where the respective team did not set up the bw-mapnik tile provider anew. Meaning, Unfolding's default map provider is not working anymore.

    Please see https://github.com/tillnagel/unfolding/issues/100

    I try to release a new version with another default provider early next year ;) The work-around for now is to use another map provider. http://unfoldingmaps.org/tutorials/mapprovider-and-tiles.html#map-styles

    Regarding the second problem (the Stamen map also not working), I wonder if this is unrelated. When I click on your link it works for me. If it does for you too, maybe check whether Processing can access the web at all.

  • Thanks a lot @tnagel ;)

    The Stamen problem is now resolved, and I've changed the default provider on all the examples to various providers and it works... fine !! ;)

    One more question : are you going to update the library, when the OpenStreetMaps provider will be working again so we can use tiles from OpenStreetMaps ?

    Thanks for your time (and for the GREAT library !)

  • Hi, I want to use unfolding Maps.

    If I use the example SimpleMapMarker, the App crahes after start with this information: FATAL EXCEPTION: Thread-9366 java.lang.NoSuchMethodError: processing.core.PApplet.loadImage at de.fhpotsdam.unfolding.tiles.TileLoader.getTileFromUrl(Unknown Source) at de.fhpotsdam.unfolding.tiles.TileLoader.run(Unknown Source) at java.lang.Thread.run(Thread.java:841)

    The error is the same if I use various Map Provider from: http://unfoldingmaps.org/tutorials/mapprovider-and-tiles.html#map-styles

    Any suggestions?

  • @DennisEB : That must be a version problem. Download and install latest version of Processing and Unfolding and it should work.

    BTW : this question has nothing to do with the original and you should move it to a new thread.

Sign In or Register to comment.