freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

mapbar地圖應(yīng)用程序接口使用手冊之地圖操作接口分冊-wenkub

2022-11-14 06:12:05 本頁面
 

【正文】 .......................................................... 28 地圖操作接口分冊 機(jī)密 第 4 頁 共 50 頁 刪除地圖內(nèi)控件接口 removeControl (obj) ............................................................................................ 28 比例尺標(biāo)簽設(shè)置接口 showScale (scale) .................................................................................................. 29 逐級放大接口 zoomIn () ............................................................................................................................ 29 逐級縮小接口 zoomOut ()....................................................................................................................... 30 秱勱地圖接口 panTo (x, y) ...................................................................................................................... 30 設(shè)置地圖操作接口 setMode(mode)....................................................................................................... 31 地圖清除接口 clearOverlays ()。 地圖操作接口分冊 機(jī)密 第 9 頁 共 50 頁 3. API使用不接口 規(guī)范 使用示例 創(chuàng)建 一個 地圖 在網(wǎng)頁中嵌入 一個具有 具備 放大、縮小、 秱勱 功能的地圖。 // oo: true 打開鷹眼地圖; false 關(guān)閉鷹眼地圖。 // 創(chuàng)建一個名字為 myMap 的地圖對象實(shí)例。 // 顯示以北京為中心,比例尺為 8 級的地 圖。left:100。 程序 html head meta equiv=ContentType content=text/html。 !// 定制自己的按鈕。 button onClick=(3)移動 /button !// 定義移動按鈕。width:640px。 charset=GBK title/title script language=javascript src= script type=text/javascript language=javascript var myicon = new MMarker ( // 創(chuàng)建一個標(biāo)注點(diǎn) POI 對象實(shí)例。 new MLabel(標(biāo)簽 ) // 定義標(biāo)注點(diǎn)在地圖上顯示的標(biāo)簽名稱。 (myicon)。height:480px/div /body /html 代碼執(zhí)行 圖例 操作說明:單擊標(biāo)注點(diǎn)圖標(biāo),界面彈出標(biāo)注點(diǎn)氣泡信息框。 // 創(chuàng)建用于折線的畫筆 對象實(shí)例 。 = 10。HEJJFUXVVHCWI39。), // 定義折線中間點(diǎn)坐標(biāo)。 new MInfoWindow(線的名稱 , 線的內(nèi)容 ) // 定義單擊折線彈出的折線氣泡信息框。 (myPline)。 地圖基本操作 演示在地圖上定制多個支持地圖基本操作功能的按鈕,單擊這些按鈕時,執(zhí)行按鈕提示的操作功能。 /style script type=text/javascript src= script language = javascript var maplet。 (new MStandardControl())。client=))。left:0。 // 地圖顯示區(qū) 。zoomin39。paddingtop:2px。)。 /div div style=paddingbottom:5px。paddingtop:2px。fontsize:12px。pan39。paddingtop:2px。 value=地圖清除 style=border:1 solid 999999。input type=button onClick=(0,200)。 /div div style=paddingbottom:5px。 /div div style=paddingbottom:5px。paddingtop:2px。fontsize:12px。 value=地圖居中 style=border:1 solid 999999。nbsp。width:120px。fontsize:12px。paddingtop:2px。 value=獲取級別 style=border:1 solid 999999。fontsize:12px。input type=button onClick= = getCenter()。 當(dāng)前中心編碼 input type=text name=currenLatlon value= style=border:1 solid 999999。 /div /td /tr /table /body /html 執(zhí)行代碼 圖 例 操作說明 :單擊地圖右側(cè)按鈕, 完成按鈕提示的地圖操作。 /style script type=text/javascript src= 地圖操作接口分冊 機(jī)密 第 17 頁 共 50 頁 script language = javascript var maplet。 (new MStandardControl())。,callback)。 //標(biāo)注一個點(diǎn) (pan)。)。 var point = new MPoint(latlon)。 leftmargin=10 topmargin=10 marginheight=0 marginwidth=0 table width=100% cellpadding=0 cellspacing=0 border=0 tr td width=500 div id=mapbar style=position:relative。height:350px。 valign=top input type=button onClick=getPoint()。 !// 創(chuàng)建 “開始標(biāo)注 ”按鈕,并注冊事件回調(diào)。 charset=GBK / titleMapbar Map/title style /style script type=text/javascript src= script language = javascript var maplet。 (new MStandardControl())。 ()。 (point)。 var infoWindow = new MInfoWindow(name,detail)。 var marker = new MMarker(point,icon,infoWindow,Mlable)。 } /script /head body onload = init()。width:500px。 valign=top input type=button onClick=addP()。 !// 創(chuàng)建單點(diǎn)顯示按鈕,并注冊單擊事件回調(diào)。 charset=GBK / titleMapbar Map/title style // 刪除了本段格式風(fēng)格定義描述內(nèi)容。 (new MPoint(泉州市 ),8)。drawline39。 = strUrl。left:0。 !// 地圖顯示區(qū) /td td style=padding:10px。paddingtop:2px。 charset=GBK / titleMapbar Map/title style // 刪除了本段格式風(fēng)格定義描述內(nèi)容。 (new MPoint(泉州市 ),8)。 // 預(yù)存折線折點(diǎn)坐標(biāo)。 for(i = 0。 // 創(chuàng)建 1 個折線。 var myBrush = new MBrush(color, width)。 = style。 var polygon = new MPolyline( lineArray,myBrush,infoWindow)。 } /script /head body onload = init()。width:500px。 valign=top input type=button onClick=addL()。br!// 創(chuàng)建 “線條顯示 ”按鈕,并注冊單擊事件回調(diào) /td /tr /table /body /html 執(zhí)行代碼圖例 操作說明:單擊“線條顯示”按鈕,界面顯示預(yù)先定義好的折線,單擊折線任意點(diǎn)點(diǎn),界面彈出折線氣泡信息框。 new MPoint(北京市 ), new MIcon( new MInfoWindow(名稱 ,內(nèi)容 ), new MLabel(標(biāo)簽 ) )。 }。 alert(122333)。height:480px/div /body /html 執(zhí)行代碼圖例 地圖操作接口分冊 機(jī)密 第 25 頁 共 50 頁 注:鼠標(biāo)左鍵單擊地圖的 POI 點(diǎn)“標(biāo)簽”,系統(tǒng)響應(yīng)對該對象的“ click”事件,彈出 程序回調(diào)凼數(shù)定義的 alert(122333)提示框 。 類型 全局屬性。 鼠標(biāo)轉(zhuǎn)輪設(shè)置屬性 mw 用途 激活或去活鼠標(biāo)轉(zhuǎn)輪縮放地圖功能,鼠標(biāo)轉(zhuǎn)輪有效時,向前滾勱鼠標(biāo)轉(zhuǎn)輪,放大地圖、向后滾勱鼠標(biāo)轉(zhuǎn)輪,縮小地圖。 返回 無。 返回 無。 返回 無。 參數(shù) 形參 類型 定義 備注 center object 中心城市 例如: center = new MPoint(北京市 ) // 創(chuàng)建地圖中 地圖操作接口分冊 機(jī)密 第 28 頁 共 50 頁 心點(diǎn),本例為北京。 類型 Public 方法。 類型 Public 方法。 輸入 參數(shù) 形參 類型 定義 備注 scale bool 是否顯示比例尺標(biāo)簽 scale = true // 顯示比例尺。 逐級放大 接口 zoomIn () 用途 提供地圖逐級放大功能。 地圖操作接口分冊 機(jī)密 第 30 頁 共 50 頁 逐級縮小 接口 zoomOut () 用途 提供地圖逐級縮小功能。 輸入?yún)?shù) 無。 scale = false // 丌顯示比例尺。 返回 無 比例尺標(biāo)簽 設(shè)置接口 showScale (scale) 用途 顯示當(dāng)前地圖的比例尺 。 obj = new MStandardControl (undefined,undefined,undefined,1) // 創(chuàng)建簡易地圖縮放控件。 返回 無。 用途 顯示 中心點(diǎn) 基礎(chǔ)背景地圖。 類型 Public 接口方法。 地圖操作接口分冊 機(jī)密 第 27 頁 共 50 頁 類型 Public 接口方法。 屬 性值 屬性 類型 定義 備注 mw bool 鼠標(biāo)轉(zhuǎn)輪是否有效 true // 鼠標(biāo)轉(zhuǎn)輪有效(默認(rèn)有效)。 oo = false // 隱藏鷹眼。本組件提供 強(qiáng)大功能, 便捷、接口簡單的 API,定制丌同風(fēng)格 的 基礎(chǔ) 地圖 。 } /script /head body onLoad=i
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1