1. A concise explanation of the problem you’re experiencing.
I have developed a reverse geocoder for Cesium using the BingMaps API. It works perfectly in my html page, running locally on my Cesium server.
I was thinking of checking it in as a Sandcastle example…it works around CORS which BingMaps doesn’t support.
But the call fails every time. Is this expected? Or am I missing something?
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
**** var requestString = “http://dev.virtualearth.net/REST/v1/Locations/” + latitude + “,” + longitude + “?jsonp=GeocodeCallback&key=”;
// Call the Cesium jsonp
console.log(“Success in getting response”);
**console.log("Error in getting response: " + error); ** //It always ends up here…
When I run it in my html page on the local server, it works only with my key, and not with the Cesium default key…
In Sandcastle, it doesn’t work no matter which key I use.
I am using as a starting point the “HelloWorld” Sandcastle example.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
The specification for the reverse geocoder, is:
If the user clicks any location on the map, the location will be marked by a red point, and the address (or zip code if no address) will show in the entity label.
4. The Cesium version you’re using, your operating system and browser.
Version 1.39, Mac Sierra, Chrome