openlayers.Popup

 OpenLayers.Popup:

fixPadding:处理边界间隙。3.0版本将废弃
initialize:初始化
destroy:销毁
draw:绘制
updatePosition:更新位置
moveTo:移动
visible:判断弹出窗口是否可见
toggle:反转可见性
show:显示弹出窗口
hide:隐藏弹出窗口
setSize:设置弹出窗口尺寸
setBackgroundColor:设置背景颜色
setOpacity:设置透明度
setBorder:设置边框
setContentHTML:设置弹出窗口内容(同时校验调整弹出窗口大小)
getSafeContentSize:计算内容Div的安全尺寸(在限制尺寸之内并且不会超过地图尺寸)
getContentDivPadding:取弹出窗口边界间隙
addCloseBox:添加关闭窗口
panIntoView:移动地图至弹出窗口全部可见
registerEvents:注册监听事件
onmousedown:鼠标按下
onmousemove:鼠标移动
onmouseup:鼠标放开
onclick:鼠标单击
onmouseout:鼠标移除
ondblclick:鼠标双击

转载自:https://blog.csdn.net/zhlx2835/article/details/6935174

You may also like...