[Google Maps API v3] Re: OverlayView with fixed postion[SOLVED]

2011-02-21 Thread Joan
Hi, Finally I solved it. Maybe it's not the perfect solution, but at leat it does the job. Inside the draw method I remove the canvas and then I create it again setting the convenient top and left styles. The constructor: function HeatMapOverlay( points, map) {

[Google Maps API v3] Re: OverlayView with fixed postion

2011-02-18 Thread Esa
On Feb 18, 7:51 pm, Joan jangl...@gmail.com wrote:   this.getPanes().overlayLayer.appendChild(canvas); My problem is that when dragging the map, the canvas is not fixed relative to the browser's window. It is not fixed to browser window but fixed to the overlayLayer pane. The idea of

[Google Maps API v3] Re: OverlayView with fixed postion

2011-02-18 Thread Martin™
You might have better luck with events reaching your map if you add it to the map as a custom control: http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls Martin. On Feb 18, 5:51 pm, Joan jangl...@gmail.com wrote: Hi, I'm trying to add an OverlayView using