百度地图的覆盖物自定义(二)--点击标注物弹出完全自定义的信息提示窗口(不继承百度提供的Infowindow)
//----------------复杂的自定义覆盖物-----------------------------------------------
//还未点击的覆盖物
//初始化,提供一下主要改变的参数
function BusUnclickedOverlay(point, pay, id) {
this._point = point;
this._pay = pay;
this._id = id;
}
BusUnclickedOverlay.prototype = new BMap.Overlay(); //继承百度地图提供的覆盖物的类
BusUnclickedOverlay.prototype.initialize = function(map) {
this._map = map;
var div = this._div = document.createElement("div");
div.setAttribute("id", "busUnclickedoverLay" + this._id);
div.style.position = "absolute";
div.style.zIndex = BMap.Overlay.getZIndex(this._point.lat);
div.style.height = "70px";
div.style.width = "150px";
div.style.lineHeight = "70px";
div.style