Parameters:
Name |
Type |
Description |
options |
Object
|
可选项,请参见基类hmap.overlay.Overlay的参数说明。
Name |
Type |
Description |
scaleFactor |
Number
|
模拟近大远小以及前后关系的因子,为0时表示没有效果,值越大缩放效果越明显,默认没有近大远小的效果 |
positioning |
String
|
弹窗锚点相对于弹窗的基础位置,默认为"top-left",有"top-left"、"top-center"、"top-right"、"center-left"、"center-center"、"center-right"、"bottom-left"、"bottom-center"、"bottom-right"可选。注意写入的div元素子节点(如有)position不可设置为绝对定位。 |
|
Example
let content = document.createElement("div");
content.textContent = "弹框内容";
let location = new hmap.basetype.Coordinate(120, 30, 0);
let simplePopup = new hmap.overlay.SimplePopup({
"location":location,
"domId":"domId",
"element":content
});