i tried this ..but ..it doesn't work either lol :( OverlayTest.prototype = new google.maps.OverlayView();
var latlngmark = new google.maps.LatLng(51.506209,-0.146796); var bounds = new google.maps.LatLngBounds(latlngmark); var divholder = null; setMap(map); OverlayTest.prototype.onAdd = function() { var panes = getPanes(); divholder = '<div id="testdiv" style="border:1px solid #f09;padding: 3px;background-color:#f09;position:absolute;"><img src="/pic1.png"></ div>'; panes.overlayImage.appendChild(divholder); } OverlayTest.prototype.draw = function() { var overlayProjection = getProjection(); var sw = overlayProjection.fromLatLngToDivPixel(bounds.getSouthWest()); var ne = overlayProjection.fromLatLngToDivPixel(bounds.getNorthEast()); divholder.style.left = sw.x + 'px'; divholder.style.top = ne.y + 'px'; divholder.style.width = (ne.x - sw.x) + 'px'; divholder.style.height = (sw.y - ne.y) + 'px'; } OverlayTest.prototype.onRemove = function() { divholder.parentNode.removeChild(divholder); divholder = null; } -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.