Closed fegyi001 closed 8 years ago
Hello @fegyi001
I'm quiet sure the servers you tried supports CORS requests. In this case, you don't really need a proxy.
To avoid using a proxy, you can do the following after the instantiation of G3MBuilder_WebGL:
final G3MBuilder_WebGL builder = new G3MBuilder_WebGL();
final String proxy = null;
builder.setDownloader(new Downloader_WebGL( //
8, // maxConcurrentOperationCount
10, // delayMillis
proxy));
It means: don't create a default (with proxy) downloader but use the given one (with proxy=null).
With this, it should work.
Cheers,
-- Diego
Hello @DiegoGomezDeck
Thanks for the quick reply, this small code snipped just solved the problem. Wow. I recommend modifying the code samples in the repo (G3MWebGLDemo, HelloWorld etc), since I'm pretty sure all newbies will face the same problem.
Best, Fegyi
Hello Everyone, especially @glob3mobile @DiegoGomezDeck!
I just discovered g3m and since it seems like an advanced 3d tool I decided to dive into it. I must admit I have problems even with the HelloWorld GWT example.
After following the tutorial at https://github.com/glob3mobile/g3m/wiki/Hello-World-HTML-(GWT) I wanted to launch the app in my browser, but unfortunately I received an error which is caused by the Proxy I guess. This is an example call:
The response is the following:
If I simply insert the jpg url into the browser I receive the image with no problem. That's why my guess is that the Proxy must be malfunctioning.
I tried with a different layer, added OpenStreetMap instead of the default MapQuest layer. The images still don't come when I call for example
This time an OpenStreetMap specific error is received:
Here is a screenshot of my Chrome, maybe this explains the problem more. http://s22.postimg.org/8f5ixfu6p/Untitled.png
Anyone could help me with this problem?