Cesium.js - failed to obtain image tile X:1 Y:0 Level: 1

1,631 views
Skip to first unread message

en.y...@gmail.com

unread,
Feb 26, 2014, 10:48:40 PM2/26/14
to cesiu...@googlegroups.com
Hi all,

Sorry for the basic questions I have had so far, and thank you very much for being supportive. I am still trying to get to know Cesium.  This time I have a different problem.  I am trying out the layers tutorial with jetty version 8.  The files I used are from full cesium zip.  Below are the errors I encountered:

"An error occurred in "":" Cesium.js:407
19:37:39.527 "Failed to obtain image tile X: 1 Y: 0 Level: 1." Cesium.js:407
19:37:39.528 "An error occurred in "":" Cesium.js:407
19:37:39.528 "Failed to obtain image tile X: 0 Y: 1 Level: 1." Cesium.js:407
19:37:39.562 "An error occurred in "":" Cesium.js:407
19:37:39.562 "Failed to obtain image tile X: 1 Y: 1 Level: 1." Cesium.js:407
19:37:39.563 "An error occurred in "":" Cesium.js:407
19:37:39.564 "Failed to obtain image tile X: 0 Y: 0 Level: 1." Cesium.js:407

Below is the entire html file.

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Hello World!</title>
  <script src="Build/Cesium/Cesium.js"></script>
  <style>
      @import url(Build/Cesium/Widgets/widgets.css);
      #cesiumContainer {
          position: absolute;
          top: 0;
          left: 0;
          height: 100%;
          width: 100%;
          margin: 0;
          overflow: hidden;
          padding: 0;
          font-family: sans-serif;
      }
      body {
          padding: 0;
          margin: 0;
          overflow: hidden;
      }
  </style>
</head>
<body>
  <div id="cesiumContainer"></div>
  <script>
 var widget = new Cesium.CesiumWidget('cesiumContainer', {
  imageryProvider : new Cesium.ArcGisMapServerImageryProvider({
        url : 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer',
        proxy : new Cesium.DefaultProxy('http://cesium.agi.com/proxy/')
  })
 });
 var layers = widget.centralBody.getImageryLayers();
 var blackMarble = layers.addImageryProvider(new Cesium.TileMapServiceImageryProvider({
   url : 'http://cesiumjs.org/blackmarble', maximumLevel : 8,
  credit : 'Black Marble imagery courtesy NASA Earth Observatory'
 }));
 blackMarble.alpha = 0.5;
 blackMarble.brightness = 2.0;
 layers.addImageryProvider(new Cesium.SingleTileImageryProvider({
     url : 'Build/Cesium/images/Cesium_Logo_overlay.png',
     extent : new Cesium.Extent(
     Cesium.Math.toRadians(-75.0),
     Cesium.Math.toRadians(28.0),
     Cesium.Math.toRadians(-67.0),
     Cesium.Math.toRadians(29.75))
 }));
  </script>
</body>
</html>

Cathy Hu

unread,
Mar 4, 2014, 8:04:10 PM3/4/14
to cesiu...@googlegroups.com
Have you get this solved? I get the same error when I try to add a browse image from my geoserver to Cesium Map. I have a post onMar. 3. The title is ;
"Display GeoTiff browse images to Cesium Map".

BH

unread,
Mar 5, 2014, 7:34:31 AM3/5/14
to cesiu...@googlegroups.com
No, I haven't.  But I noticed that when I run this with Jetty as local web server, I got the error.  However, if I run it without the local webserver (just run the html file locally), it's fine.


--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/cyooVWTaEfE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

wuzz...@gmail.com

unread,
Nov 29, 2015, 9:50:59 AM11/29/15
to cesium-dev
Sorry to reply to an old thread, but Google brought me here. I ran into this problem today, and the solution was CORS: I posted a description over at Stack Overflow [1].

I didn't try the CORS solution for a while because the non-CORS server was logging 200 success for Cesium's requests (I thought CORS infractions were forbidden by the browser from ever being transmitted to the server). But switching to CORS was the answer.

[1] http://stackoverflow.com/q/28946739/500207

Reply all
Reply to author
Forward
0 new messages