You can use the excellent small library, RichMarker . Its documentation is here .
To make it easier to use, you can even create your own class of markers, for example:
Ns.Marker = function(properties) { RichMarker.call(this, properties); this.setContent('<div class="three-images-marker">' + properties.NsImage ? '<div class="marker-image-1"><img src="'+properties.NsImage1+'"/></div>' : '' + properties.NsFrameImage ? '<div class="marker-image-2"><img src="'+properties.NsImage2+'"/></div>' : '' + '</div>'); }; Ns.Marker.prototype = Object.create(RichMarker.prototype);
'Ns' is any namespace that you use.
From now on, CSS works, you can put images as you like.
source share