function CustomMarker(t,e,i){this.latlng=t,this.args=i,this.setMap(e)}CustomMarker.prototype=new google.maps.OverlayView,CustomMarker.prototype.draw=function(){var t=this,e=this.div;if(!e){e=this.div=document.createElement("div"),e.className="marker",e.style.position="absolute",e.style.cursor="pointer",e.style.width="20px",e.style.height="20px",e.style.background="blue","undefined"!=typeof t.args.marker_id&&(e.dataset.marker_id=t.args.marker_id),google.maps.event.addDomListener(e,"click",function(){alert("You clicked on a custom marker!"),google.maps.event.trigger(t,"click")});var i=this.getPanes();i.overlayImage.appendChild(e)}var r=this.getProjection().fromLatLngToDivPixel(this.latlng);r&&(e.style.left=r.x-10+"px",e.style.top=r.y-20+"px")},CustomMarker.prototype.remove=function(){this.div&&(this.div.parentNode.removeChild(this.div),this.div=null)},CustomMarker.prototype.getPosition=function(){return this.latlng};