Topic: Elevations not showing in webgl online projects ?

Hello
So I built the "fly" in the sample scenes, and uploaded it here : https://zooomez.fr/ph/flywebgl/
It confirms that elevations are not showing online as they do in the editor.
Did I miss something ? A key or a parameter somewhere ?
Best regards.

Re: Elevations not showing in webgl online projects ?

Hello.

This is a CORS problem.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
I redirected requests for ArcGIS elevation through a proxy, and now this should work correctly.
A modified script is attached.

P.S. To reduce response time, it is best to have proxy scripts on your server.
If you want, you can request proxy scripts by email (support@infinity-code.com).

Post's attachments

Attachment icon OnlineMapsWWW.cs 14.95 kb, 103 downloads since 2020-05-19 

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Elevations not showing in webgl online projects ?

Alex Vertax wrote:

Hello.

This is a CORS problem.
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
I redirected requests for ArcGIS elevation through a proxy, and now this should work correctly.
A modified script is attached.

Doesn't change anything, I checked the script in my project it is the modified one... Terrain still flat...

Alex Vertax wrote:

P.S. To reduce response time, it is best to have proxy scripts on your server.
If you want, you can request proxy scripts by email (support@infinity-code.com).

Email sent!

Re: Elevations not showing in webgl online projects ?

I updated the script in post #2 so as not to produce entities.
Now it should work correctly.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Elevations not showing in webgl online projects ?

Alex Vertax wrote:

I updated the script in post #2 so as not to produce entities.
Now it should work correctly.

It works "better" but not in WebGL online.

I made some tests with your last script, I can get/switch the elevations :

- in the editor (in play mode)
- with a windows build (exe)
- with a webGL build offline (in the web browser, not uploaded)

But the terrain remains flat in webGL build once uploaded on our server, while this is what we are looking for...

Any idea ?

Re: Elevations not showing in webgl online projects ?

Here is my WebGL build:
https://infinity-code.com/demos/online-maps-test/
As you can see this has elevations.

Please share your latest build so that I can see the requests.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

7 (edited by mcb 2020-07-30 18:29:04)

Re: Elevations not showing in webgl online projects ?

I had the same issue with firebase hosted deployments.

Even with using the proxy recommended, firebase kicked out the requests because they weren't to a secured server.

After a lot of headaches, I simply added an (s) to the "http" and viola!  It worked.