摘要:
function SaveMap() { var param = new Object(); param = map.GetMapParam(); var pixelRect = map.GetSize(); param.SetPixelRect(pixelRect); map.GetMapImage(param, onSaveMapComplete, onSaveMapError);}function onSaveMapComplete(url) { if (url != null && url.length 0) { window.open(url, '地图保存', 'menubar= 阅读全文
摘要:
function toggle(targetid){ var target = document.getElementById(targetid); if (target.style.display == "block") { target.style.display = "none"; } else { target.style.display = "block"; }} 阅读全文
摘要:
function OnPageLoad() {...map.AttachEvent("oninit", MapInit());map.Init();}function MapInit() {//在任务栏显示地理坐标ShowMapCoord();}function ShowMapCoord() { var action = new ShowMapCoordAction(); map.SetAction(action);}function ShowMapCoordAction() { this.type = "SuperMap.IS.MapCoordAction"; this.Init = fun 阅读全文
摘要:
1 在主页面中控制子页面的切换在主页面中的代码以及DOMscript type="text/javascript"function changeUrl(url) { document.getElementById("ifra_operation").src = url; }/scriptdiv id="div_operation" iframe id="ifra_operation" src="A.aspx" runat="server"/iframe/divinput id="submit" onclick="changeUrl('B.aspx')"/2 在子页面 阅读全文