Summary
Methods:
Constructor
new ArrawPopup(options)
构造函数。
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 可选项,其他参数说明请参见基类hmap.overlay.Overlay的参数说明。
|
Example
let content = document.createElement("div");
content.textContent = "带引导线的弹框内容";
let location = new hmap.basetype.Coordinate(120.435078, 30.19345, 0);
let arrawPopup = new hmap.overlay.ArrawPopup({
"visible":true,
"domId":"a",
"element":content,
"location":location,
"offset": new hmap.basetype.Offset(10,10),
"anchorType": "ellipse",
"anchorWidth": 2,
"anchorHeight": 2,
"anchorFillColor": new hmap.style.Color(0,0,0,1),
"anchorStrokeColor": new hmap.style.Color(255,0,0,1),
"anchorStrokeWidth": 2,
"linePointOffsetArr": [new hmap.basetype.Offset(10,10),new hmap.basetype.Offset(20,10)],
"lineWidth": 5,
"lineColor": new hmap.style.Color(0,0,0,1),
"popOffsetLine": new hmap.basetype.Offset(0,0)
});