cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Some Ion imagery assets attempt to load from localhost instead of the correct URLs

Open azrogers opened this issue 10 months ago • 1 comments

As identified on the forums, Cesium for Unity (and potentially all cesium-native clients) attempts to load some Ion imagery overlays from the incorrect URLs. For example, for asset 2411391, the request to the Ion endpoint gives:

{
    "type": "IMAGERY",
    "externalType": "BING",
    "options": {
        "url": "//dev.virtualearth.net",
        "mapLayer": "Foreground",
        "mapStyle": "AerialWithLabelsOnDemand",
        "key": "<key removed>"
    },
    "attributions": [...]
}

Based on this information, Cesium for Unity should calculate the URL https://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialWithLabelsOnDemand?incl=ImageryProviders&key=<key removed>&uriScheme=https, as CesiumJS does. Instead it tries to make a request for the URL http://localhost/REST/v1/Imagery/Metadata/AerialWithLabelsOnDemand?incl=ImageryProviders&key=<key removed>&uriScheme=https, which obviously fails.

azrogers avatar Apr 17 '24 18:04 azrogers

@azrogers is this fixed as of https://github.com/CesiumGS/cesium-native/pull/864?

j9liu avatar May 06 '24 13:05 j9liu