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
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → 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
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
Thank-you for your reply,
with the script I get:
400 Bad Request
Invalid cast from 'System.Int64' to 'OnlineMapsBingMapsElevationResult'.
Result is null
Please attach the full response from Bing Maps Elevation API.
In attachment I send you the screenshot of the console log with "Bing Maps ElevationExample" script.
Update: elevation work on WebGL! Not in Editor...
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.
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
What version of Online Maps are you using?
I have found the same problem today. I'm using online maps v3.0.0.30 in my project!
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.
ArcGis Elevations gave me the following error:
{"error":{"code":400,"message":"Value cannot be null.\r\nParameter name: Extent"}}
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.
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.
Very interesting.
Please send screenshots of all Online Maps components.
Ok. Its a simple scene, just to test. I uploaded a screenshot with the execution and console to help.
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).
No..still not working.
Tried change one-step from 12 to 20...not single one worked.
Tried change map size also. No success.
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.
The problem has been fixed.
The new version is already available through the built-in update system.
It's working nice!
Excellent!Thanks for the help!
Infinity Code Forum → Online Maps Help → Bing Maps elevation not working
Powered by PunBB, supported by Informer Technologies, Inc.