[OpenLayers-Trac] Re: [OpenLayers] #3168: FramedCloudPopup has offset

OpenLayers trac-20090302 at openlayers.org
Sat Mar 26 09:58:45 EDT 2011


#3168: FramedCloudPopup has offset
-----------------------+----------------------------------------------------
 Reporter:  pebXX2346  |       Owner:  euzuro      
     Type:  bug        |      Status:  new         
 Priority:  minor      |   Milestone:  2.11 Release
Component:  Popup      |     Version:  2.10        
 Keywords:  position   |       State:              
-----------------------+----------------------------------------------------

Comment(by pebXX2346):

 The offset goes away if one adds those two lines at the end
 of calculateNewPx in Popup.Anchored

 {{{
 newPx.y += top? -this.anchor.offset.y:0;  //flicker if on top and hovering
 newPx.x += (left? -1:1)*this.anchor.offset.x;

 }}}

 '''But'''

  1 as noted the popup flickers/flashes if it is on top (only in 'hover
 mode')

  2 it is nearly perfectly aligned at lonlat, but looks a bit strange
 if the popup is on top since the cloud embraces the marker (see attached
 image)

 Nr. 2 seems to be ok, one have a look at this.

 Nr.1 is bad, maybe comes from: popup hides marker, marker gets
 mouseout, hides popup, gets mouseover and the hover process restarts:
 flashing loop.
 It works if one 'clicks' (or however the popup-show is triggered)
 on the marker.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3168#comment:4>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list