New release Unfolding map library 0.9.6 for Processing 2.2

We just released Unfolding Maps 0.9.6

Find it at http://unfoldingmaps.org/downloads See release notes for more info.

We also added a couple of great projects to our Unfolding exhibition.

Comments

  • After installing unfolding Maps 0.9.6, I ran SimpleMapApp in example directory. Error was occurred like this.

    java.net.UnknownHostException: a.www.toolserver.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:178) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:579) at java.net.Socket.connect(Socket.java:528) at sun.net.NetworkClient.doConnect(NetworkClient.java:180) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at

  • Just checked it, works for me. Can you check your internet connection?

  • yep I found in the src/de/fhpotsdam/unfolding/providers/OpenStreetMap.java

    from line 40 to 45 **** public static class OSMGrayProvider extends GenericOpenStreetMapProvider { public String[] getTileUrls(Coordinate coordinate) { String url = "http://a.www.toolserver.org/tiles/bw-mapnik/" + getZoomString(coordinate) + ".png"; return new String[] { url }; } }____

  • Strange. Can you check if you can access single tiles (you can find the URLs in the message box) in your browser?

    e.g. http://a.www.toolserver.org/tiles/bw-mapnik/10/552/333.png

  • I can access the address.... there might be something wrong yesterday... My connection to the server or something else....

    Thank you for your response!!!

  • Thanks for the report. Can confirm.

    Toolserver.org moved to a new server, but that map service has not been set up, again. If anyone knows of an open map provider suitable as default for a background layer, let me know.

  • Looks like this one works for me:

    http://otile1.mqcdn.com/tiles/1.0.0/sat/2/3/2.png and http://otile1.mqcdn.com/tiles/1.0.0/sat/7/63/42.jpg

    I know mapquest's usage policy, from what I understand is more open than openstreetmap (oddly enough). I've been using their reverse geocoding for looking up twitter locations and they don't limit the number you can use. :)

    OSM has quite a few others listed on their wiki, but some seemed to be dead: http://wiki.openstreetmap.org/wiki/Tile_servers

    hope this helps! ak

  • edited December 2014

    Thanks, though those are satellite images. But the new CartoDB ones look great. Will check them out.

    http://content.stamen.com/new_maps_for_cartodb http://cartodb.com/basemaps

  • I need to display a map of an area of about 80km around a designated Lat/Long. The map should be available within my PC because the PC may not have an Internet connection all the time.

    Can you point me to a tutorial which I can use to learn how to do this? Or can someone guide me on how to do this?

    RT

  • You could use TileMill (be aware you need https://www.mapbox.com/tilemill/ and not Mapbox Studio), load the area you need from OpenStreetMap, style your map, and export it as MBTiles which you then can load and use in Unfolding.

    Check out http://unfoldingmaps.org/tutorials/mapprovider-and-tiles.html#create-your-own-map-style for more info.

  • Hi, this is probably the stupidest question, but when I run the examples there is no map on the background, only grey or black. All the rest is working, but there are no images to work on. And I don't know how to add them properly, I mean not brutally, in a useful way.

    Thanks for any help

  • edited September 2015

    Hi micene84,

    could you describe your problem a bit more? Which Processing version are you using, which Unfolding version? And I guess you are trying to run the SimpleMapApp? Do you have a working Internet connection?

    And have you tried using another map provider, e.g.

    import de.fhpotsdam.unfolding.*;
    import de.fhpotsdam.unfolding.geo.*;
    import de.fhpotsdam.unfolding.utils.*;
    import de.fhpotsdam.unfolding.providers.*;
    
    UnfoldingMap map;
    
    void setup() {
      size(800, 600, P2D);
      map = new UnfoldingMap(this, new Microsoft.AerialProvider());
      map.zoomAndPanTo(new Location(52.5f, 13.4f), 10);
      MapUtils.createDefaultEventDispatcher(this, map);
    }
    
    void draw() {
      map.draw();
    }
    
Sign In or Register to comment.