我正在使用 Esri ArcGIS JS 4.3 构建一个 cordova 应用程序,但 basemap url 有问题。
它们被定义为://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
当我的 Android 应用程序请求资源时,它被翻译成 file://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
。
如何将 file://
更改为 https://
以使请求有效?
最佳答案
好吧,正如我在这里看到的,您希望项目中有 secured(https)
url。
在您的情况下,您可以如下所述转换您的 url-
较早的链接-
//services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
新 basemap url-
https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer
从技术上讲,这两个 url 是相同的,它将按预期工作。
希望这对你有帮助:)
关于android - 将 Esri ArcGIS 4.3 中的 basemap URL 更改为以 https ://instead of file://开头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43348997/