function CustomMarker(latlng,map,Mimg){this.latlng=latlng;this.Mimg=Mimg;this.setMap(map)}
CustomMarker.prototype=new google.maps.OverlayView();CustomMarker.prototype.draw=function(){var self=this;var div=this.div;if(!div){div=this.div=document.createElement('div');var domString='<div style="display:block; width:100%;"><img src="'+self.Mimg+'" style="display: block;width: 30px;height: 30px;border-radius: 100px;margin-top: -14%; padding: 4px; margin: auto;"/></div>';div.className='marker';div.style.cssText='position:absolute; cursor:pointer; width:40px; height:40px; background:url(Images/gmpointer.png) no-repeat center; background-size:contain;';div.innerHTML=domString;var panes=this.getPanes();panes.overlayImage.appendChild(div)}
var point=this.getProjection().fromLatLngToDivPixel(this.latlng);if(point){div.style.left=(point.x-20)+'px';div.style.top=(point.y-40)+'px'}};CustomMarker.prototype.remove=function(){if(this.div){this.div.parentNode.removeChild(this.div);this.div=null}};CustomMarker.prototype.getPosition=function(){return this.latlng}