1. Set label pop-up window
var label = new BMapGL.Label(content, {
// Create text annotations
position: point, // Set the geographical location of the label
offset: new BMapGL.Size(10, 20), // Set the offset of the label
});
label.setStyle({
color: "#000",
border: "0px",
backgroundColor: "0.000000000001",
fontSize: "12px",
height: "20px",
lineHeight: "20px",
});
label.setPosition(point);
map.addOverlay(label);
2. Close the label
//Close the pop-up window
map.removeOverlay(label);
Please refer to this article