Skip to content

YY. PanelControl

面板控件

creation

  • constructor(content, [options])
    • content {String} HTML文本内容
    • opitons {Object} 配置
      • position {String} 位置, 'top-left','top-right','bottom-left','bottom-right'

example

面板控件

js
var panelControl = new YY.PanelControl(
    '<div style="width:300px;height:200px">hello world</div>', {
        position: {
            left: "20px",
            top: "400px"
        }
    }
);
map.addControl(panelControl);

method

参考

YY. Control

This document is generated by vitepress and Edit by deyihu