How to update pixelPosition of a custom infoWindows on Google Maps V3 after dragging?

This answer assumes that by drag you mean dragging the marker and not dragging the map, let me know if that is not the case You should use the OverlayView and then you can use MVC techniques to bind to the marker's position property function MyOverlay(marker) { this. BindTo('position', marker); } MyOverlay. Prototype = new google.maps.OverlayView(); MyOverlay.prototype.

Position_changed = function() { this.draw(); }; MyOverLay.prototype. Draw = function() { // This is where you recalculate the latLngToPixel stuff where latLng // is this. Get('position'); } You also need to implement the rest of the OverlayView interface: onAdd and onRemove.

This answer assumes that by drag you mean dragging the marker and not dragging the map, let me know if that is not the case You should use the OverlayView and then you can use MVC techniques to bind to the marker's position property. Function MyOverlay(marker) { this. BindTo('position', marker); } MyOverlay.

Prototype = new google.maps.OverlayView(); MyOverlay.prototype. Position_changed = function() { this.draw(); }; MyOverLay.prototype. Draw = function() { // This is where you recalculate the latLngToPixel stuff where latLng // is this.

Get('position'); }; You also need to implement the rest of the OverlayView interface: onAdd and onRemove.

Assumption was right and at the time I used a solution similar to one you provided. Thanks! – aarreoskari Aug 17 '10 at 13:29.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions