Stamen Tiles for Terrain data

420 views
Skip to first unread message

websim...@gmail.com

unread,
Apr 29, 2014, 8:30:00 AM4/29/14
to cesiu...@googlegroups.com
Does anyone know, why whether Stamen Tiles (OSM) for terrain are supported ? at least this code is not working for me :

var imageryProvider = new Cesium.OpenStreetMapImageryProvider({
                    url: 'http://tile.stamen.com/terrain',
                    fileExtension: 'jpg'
                });   

however with urls:
http://tile.stamen.com/watercolor 
http://tile.stamen.com/toner
it works fine.

Kevin Ring

unread,
Apr 29, 2014, 9:32:43 AM4/29/14
to cesiu...@googlegroups.com
Hi,

That layer (sort of) works for me using this code in Sandcatle:

require(['Cesium'], function(Cesium) {
    "use strict";

    var widget = new Cesium.CesiumWidget('cesiumContainer', {
        imageryProvider : new Cesium.OpenStreetMapImageryProvider({
            url : 'http://tile.stamen.com/terrain',
            fileExtension : 'jpg'
        })
    });

    Sandcastle.finishedLoading();
});

However, the Stamen service returns gray tiles for the first four tile levels, for unknown reasons, so you'll have to zoom in before you can see anything.  You can see the problem in their client as well:


Zoom in and suddenly you're looking at the U.S.  You'll probably need to contact Stamen to ask them why their layer is behaving that way.

Kevin



--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

websim...@gmail.com

unread,
Apr 30, 2014, 5:36:19 AM4/30/14
to cesiu...@googlegroups.com
Unfortunatelly, the code you posted, does not work either in the SandCastle. There are no images, no matter what zoom level I have. In the console I receive the message:

An error occurred in "OpenStreetMapImageryProvider": Failed to obtain image tile X: 1 Y: 0 Level: 1.

and the Earth is a transparent image in all zoom levels...

Marcin

Kevin Ring

unread,
May 2, 2014, 9:35:18 AM5/2/14
to cesiu...@googlegroups.com
Hi Marcin,

I started with the Black Marble example.  It's still working for me (though I do get some errors in the console about missing tiles).  The globe is initially grey, and if I zoom in from the default view without rotating, the U.S. eventually appears:

Inline image 1

Does the Stamen client I linked above work for you?

Kevin


--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

websim...@gmail.com

unread,
May 8, 2014, 10:38:22 AM5/8/14
to cesiu...@googlegroups.com

This is what I get from SandCaste:


Scott Hunter

unread,
May 8, 2014, 10:44:58 AM5/8/14
to cesiu...@googlegroups.com
Can you load the tiles directly in your browser?

Reply all
Reply to author
Forward
0 new messages