I have used Google api Overlayviews. I was able to add custom overlays with html div element at a latlng position using the pixel values.
USGSOverlay.prototype.draw = function() {
var overlayProjection = this.getProjection();
var sw = overlayProjection.fromLatLngToDivPixel(this.bounds_.getSouthWest());
var ne = overlayProjection.fromLatLngToDivPixel(this.bounds_.getNorthEast());
var div = this.div_;
div.style.left = sw.x + 'px';
div.style.top = ne.y + 'px';
div.style.width = (ne.x - sw.x) + 'px';
div.style.height = (sw.y - ne.y) + 'px';
};
Now i am using OpenLayer 3. Is there any option to add a custom div element like a marker at a particular position using pixel values. Each time when the map is zoomed in or zoomed out i can find the pixel position and update the top and left of the div element so that it appears to be at the correct position.Is there any possibility for this in OpenLayer3.