[OpenLayers-Trac] [OpenLayers] #926: Google Style Popups

OpenLayers trac at openlayers.org
Tue Feb 5 07:54:48 EST 2008


#926: Google Style Popups
-------------------------+--------------------------------------------------
  Reporter:  CloudAmber  |       Owner:  euzuro     
      Type:  feature     |      Status:  reopened   
  Priority:  minor       |   Milestone:  2.6 Release
 Component:  Popup       |     Version:  2.4        
Resolution:              |    Keywords:             
     State:              |  
-------------------------+--------------------------------------------------
Comment (by pgiraud):

 Here's a new patch for this ticket.
 As proposed, the FramedBubble doesn't inherit from an existing class.
 Though, it behaves like an AnchoredBubble and offers the same APIMethod
 and APIProperties. I kept the same namespace. I'm not sure this is a good
 idea though.

 What this code does :
  - resize the bubble based on its content,
  - allow user to define his own bubble decoration by setting a different
 image and dimensions (see framedPopups.html and click on "change
 decoration"),
  - shift the map if bubble isn't entirely viewable

 What should be easy to add to the code :
  - the animated panning when map is shifted,
  - the animation when the popup is resized

 What the code is still missing :
  - a way to handle overflow 'auto' when the content size is too large,
  - the close button creation should rely on a property of the bubble,
  - a well documented procedure on how to create the decoration bubble
 properties (an image with dimensions is available on the framedPopups.html
 example page though)

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


More information about the Trac mailing list