Topic: Bing Maps elevation not working

Hello,
I have a working Bing Maps API key, but when I check "Use elevation" I get the error "400 Bad Request".
Do you know why?
Many thanks

Re: Bing Maps elevation not working

Hello.

It is difficult to say what is wrong.
There may be many reasons.

Try to make a request to Bing Maps Elevation API directly:
http://infinity-code.com/atlas/online-m … ample.html

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

Thank-you for your reply,
with the script I get:

400 Bad Request
Invalid cast from 'System.Int64' to 'OnlineMapsBingMapsElevationResult'.
Result is null

Re: Bing Maps elevation not working

Please attach the full response from Bing Maps Elevation API.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

In attachment I send you the screenshot of the console log with "Bing Maps ElevationExample" script.

Post's attachments

Attachment icon Cattura.PNG 16.59 kb, 1 downloads since 2019-04-15 

Re: Bing Maps elevation not working

Update: elevation work on WebGL! Not in Editor...

Re: Bing Maps elevation not working

For WebGL, our proxy is used to work around a problem with an incorrect response header.

This means three things:
1. Your API key is correct.
2. You are using the correct settings.
3. You have a problem, somewhere between Unity and the Internet.
Most likely this is a local or corporate proxy or firewall.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

8 (edited by danielesuppo 2019-04-15 18:09:08)

Re: Bing Maps elevation not working

Actually for my test I'm working at home, I don't have any corporate firewall.
I'm using your demo script that show the GUI to zoom, search, etc.
It's quite weird because as the application start (on WebGL) the elevation is not loaded, despite I have "Use elevation" checked (but no errors in Chrome console). Next if I check the toggle "Elevation" on your GUI nothing happen, but as I zoom in/out, or move the map the elevation is loaded

Re: Bing Maps elevation not working

What version of Online Maps are you using?

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

I have found the same problem today. I'm using online maps v3.0.0.30 in my project!

Re: Bing Maps elevation not working

Just checked the work of Bing Maps Elevations in the demo scene and it works correctly.
Try to use ArcGIS Elevations instead of Bing Maps Elevations.
This should help.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

ArcGis Elevations gave me the following error:
{"error":{"code":400,"message":"Value cannot be null.\r\nParameter name: Extent"}}

Re: Bing Maps elevation not working

My intuition tells me that you are using dotNet v4.x, right?
If yes, then dotNet v4.x support has been added in Online Maps v3.0.0.31.
So just update Online Maps.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

No actually, I was using .Net 2.0.
But i give a try, uptaded to 3.0.4.1.
Still same error.
So i changed to .Net 4.X.
Still no success.

Re: Bing Maps elevation not working

Very interesting.

Please send screenshots of all Online Maps components.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

Ok. Its a simple scene, just to test. I uploaded a screenshot with the execution and console to help.

https://imgur.com/a/ebyRkKv

Re: Bing Maps elevation not working

Problem in ArcGIS Elevation Manager / Zoom Range.
Showing elevations for zoom <12 does not make sense because you will not see this, and will cause similar problems.
Use Zoom Range (12-20).

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

No..still not working.
Tried change one-step from 12 to 20...not single one worked.
Tried change map size also. No success.

Re: Bing Maps elevation not working

I tried create a new project and didn't change anything. Still the error.
Tried to downgrade the project and unity version, no change yet.

It seems the problem is with the query.
Trying to figure out what is wrong.

Re: Bing Maps elevation not working

The problem has been fixed.
The new version is already available through the built-in update system.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Bing Maps elevation not working

It's working nice!
Excellent!Thanks for the help!