首頁 / 浏覽問題 / 其他(tā) / 問題詳情
supermap online地(dì / de)圖無法加載
1EXP 2019年07月09日

直接調用在(zài)線示例的(de)代碼在(zài)谷歌裏打不(bù)開,控制台報錯SuperMap.Include.js:17 A parser-blocking

代碼如下(其實就(jiù)是(shì)文檔示例的(de)代碼):

<html>
<head>
    <title>GetStarted</title>
    <style>
        .mapcontainer{
            height: 600px;
        }
    </style>
      <script src='http://www.supermapol.com/resources/api/libs/SuperMap.Include.js'></script>
</head>
<body>
    <div id="map" class="mapcontainer"></div>
    <script>
        var url="http://www.supermapol.com";
        var viewer=new SuperMap.Cloud.MapViewer(url,"map");
        viewer.previewMapById(493);
    </script>
</body>
</html>

1個(gè)回答

這(zhè)邊需要(yào / yāo)測試下

1:能把報錯信息完整的(de)發一(yī / yì /yí)下嗎?

2:你是(shì)直接用的(de)本地(dì / de)文件打開的(de)還是(shì)直接在(zài)官網範例裏面用代碼測試的(de)?
5,668EXP 2019年07月09日
A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.supermapol.com/resources/api/libs/SuperMap-8.1.1-15015.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
inputScript @ SuperMap.Include.js:17
 

A parser-blocking, cross site (i.e. different eTLD+1) script, http://www.supermapol.com/resources/api/libs/Lang/zh-CN.js, is invoked via document.write. The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message. See https://www.chromestatus.com/feature/5718547946799104 for more details.
inputScript @ SuperMap.Include.js:17
 

以(yǐ)上(shàng)是(shì)完整報錯信息,我是(shì)把官網的(de)代碼粘貼到(dào)了(le/liǎo)HbuilderX裏然後在(zài)谷歌裏面打開的(de)

官網裏的(de)在(zài)線查看的(de)網頁502了(le/liǎo),看不(bù)到(dào)
您把控制台那塊截個(gè)圖發一(yī / yì /yí)下吧

。。。。

上(shàng)面那個(gè)黃歎号對項目沒有影響,下面的(de)這(zhè)個(gè)會影響到(dào)地(dì / de)圖加載,這(zhè)個(gè)問題我測試過了(le/liǎo)是(shì)有問題,需要(yào / yāo)找研發溝通一(yī / yì /yí)下具體原因
确實跑不(bù)起來(lái),下邊的(de)示例也(yě)跑不(bù)起來(lái),在(zài)線演示都報502
請問什麽時(shí)候能解決
這(zhè)個(gè)問題是(shì)因爲(wéi / wèi)這(zhè)個(gè)接口是(shì)以(yǐ)前的(de)接口不(bù)支持當前新版本的(de)iportal接口了(le/liǎo),這(zhè)個(gè)已經和(hé / huò)研發報過需求,但是(shì)因爲(wéi / wèi)是(shì)老接口所以(yǐ)現在(zài)沒有直接修改。您這(zhè)邊是(shì)需要(yào / yāo)對接iportal地(dì / de)圖進行顯示嗎?當前的(de)版本中可用的(de)是(shì)leaflet等客戶端有這(zhè)個(gè)接口
...