Mapxtreme2008v6.8 vs2008(asp.net)幾個修改項目

來源:互聯網
上載者:User

1、添加普通按鈕實現全圖顯示、添加動態圖層,用ajax實現局部重新整理

單擊按鈕後老是提示Command.js中GetMap()有誤;後經尋找代碼做如下改動後成功。

MapXtremeWebResources.Command.js中原代碼為mapImage.style.clip = 'rect(' + 0 + ' ' + w + ' ' + h + ' ' + 0 +')';
操作時經常提示參數有誤,後改為mapImage.style.clip = 'rect(' + 0 + 'px, ' + w + 'px, ' + h + 'px, ' + 0 + 'px)';成功。

註:要為"px,"格式。

2、單擊Mapxtreme內建的放大縮小工具後進行拉框放大縮小時Interaction.js老提示參數有誤。

將下面的函數做代碼中所示修改即可,但目前拉框時沒有虛線範圍,待修改。

   function EnableVML(element)
{
    element.document.namespaces.add("v", "urn:schemas-microsoft-com:vml")
    if (element.document.styleSheets.length < 1) {
        var oStyleEl = element.document.createElement("style");
        element.document.body.appendChild(oStyleEl);
}


//element.doc.styleSheets.item(0).add("v//:*", "behavior:url(#default#VML)");

將上面的代碼改為下面的樣式
element.document.styleSheets.item(0).addRule("v", "behavior:url(#default#VML)");
}

其實上面的兩個小問題在IE6中測試都沒問題,在IE8中會出現,如上改動後在IE8中也不會出錯了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.