
/**新建信息窗
* @description 
* @memberof ZenviewMap
* @params 
*/
export const creatInfo = (map, position, content, opt, callback) => {
const { ZenMap } = window;

  const content1 = content ? content : '<div style="background:#fff;padding:5px 14px;font-size:14px">空信息窗<div>';
  let infoWindow = new ZenMap.Symbols.InfoWindow(position, "", content1, {
    iscommon: opt ? opt.isCommon : false,
    closeButton: opt ? opt.closeButton : false,
    offset: new ZenMap.Geometry.Size(opt ? opt.offset[0] : 0, opt ? opt.offset[1] : -40) //信息窗位置偏移值[0, -40]
  });
  infoWindow.setBackgroundColor("white")
  map.addOverlay(infoWindow);
  infoWindow.open();
  infoWindow.getBaseDiv().style.padding = '2px 5px 2px';
  callback && callback(infoWindow)
  return infoWindow;
}
/**关闭信息窗
* @description 
* @memberof ZenviewMap
* @params 
*/
export const closeInfo = () => {

}