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

Pierre GIRAUD bluecarto at gmail.com
Thu Feb 7 17:02:00 EST 2008


I was just curious about how google was dealing with the flickr effect
I thought unfixable, and the solution seems hacky but actually not so
difficult to implement.
The weird display issue only appears when the user pans the map and
the popups gets partly outside the viewport. I looks like google set
the overflow of the contentDiv to 'hidden' temporarily when the map
moves.

I'll try this ASAP, and I'll also give a look at adding a new max size
parameter. I'll keep you informed.

Regards,

On Feb 7, 2008 8:47 PM, Pierre GIRAUD <bluecarto at gmail.com> wrote:
> Actually, you can already specify a min size.
> Currently the size of the viewport is a constraint for the max size of
> the popup.
> We could easily imagine a max size defined by user as well as it is
> done for min size.
> Though, I don't think this would work with the current code because I
> set the overflow to 'hidden' for the content. That way, weird display
> issues are avoided but scrollbar won't show.
>
> Regards,
> Pierre
>
>
> On Feb 7, 2008 2:07 PM, Bart van den Eijnden (OSGIS) <bartvde at osgis.nl> wrote:
> > Hi Pierre,
> >
> > one question, you said in the IRC meeting that the popups size themselves
> > according to the content.
> >
> > Is it currently possible to specify a maxWidth and maxHeight for the popups,
> > and have scrollbars in them if the content exceeds the maximum dimension?
> >
> > Best regards,
> > Bart
> >
> > --
> > Bart van den Eijnden
> > OSGIS, Open Source GIS
> > http://www.osgis.nl
> >
> >
> > --------- Oorspronkelijk bericht --------
> > Van: Pierre GIRAUD <bluecarto at gmail.com>
> > Naar: dev at openlayers.org <dev at openlayers.org>
> > Onderwerp: Re: [OpenLayers-Dev] [OpenLayers-Trac] [OpenLayers] #926: Google
> > Style Popups
> > Datum: 07/02/08 09:14
> >
> > > Please don't forget that Tim Coulter and Roald Ewit also worked on that
> > too.
> > > It would be helpfull for you to also check their work.
> > > I think that Roald code is available in this ticket (or another one)
> > > and tim's code can be found into the topp/nymap sandbox. It's worth
> > > looking at this and maybe have a discussion with them. I would be also
> > > happy to help you and talk about this on IRC when I'm available.
> > >
> > > Regards,
> > > Pierre
> > >
> > > On Feb 7, 2008 7:20 AM, OpenLayers &lt;trac at openlayers.org&gt; wrote:
> > > &gt; #926: Google Style Popups
> > > &gt;
> > -------------------------+--------------------------------------------------
> > > &gt;   Reporter:  CloudAmber  |       Owner:  euzuro
> > > &gt;       Type:  feature     |      Status:  reopened
> > > &gt;   Priority:  minor       |   Milestone:  2.6 Release
> > > &gt;  Component:  Popup       |     Version:  2.4
> > > &gt; Resolution:              |    Keywords:
> > > &gt;      State:              |
> > > &gt;
> > -------------------------+--------------------------------------------------
> > > &gt; Comment (by euzuro):
> > > &gt;
> > > &gt;  Replying to [comment:14 pgiraud]:
> > > &gt;  &gt; Here's a new patch for this ticket.
> > > &gt;  &gt; As proposed, the FramedBubble doesn't inherit from an existing
> > class.
> > > &gt;  Though, it behaves like an AnchoredBubble and offers the same
> > APIMethod
> > > &gt;  and APIProperties. I kept the same namespace. I'm not sure this is a
> > good
> > > &gt;  idea though.
> > > &gt;  &gt;
> > > &gt;  &gt; What this code does :
> > > &gt;  &gt;  - resize the bubble based on its content,
> > > &gt;  &gt;  - allow user to define his own bubble decoration by setting a
> > different
> > > &gt;  image and dimensions (see framedPopups.html and click on
> > &quot;change
> > > &gt;  decoration&quot;),
> > > &gt;  &gt;  - shift the map if bubble isn't entirely viewable
> > > &gt;  &gt;
> > > &gt;  &gt; What should be easy to add to the code :
> > > &gt;  &gt;  - the animated panning when map is shifted,
> > > &gt;  &gt;  - the animation when the popup is resized
> > > &gt;  &gt;
> > > &gt;  &gt; What the code is still missing :
> > > &gt;  &gt;  - a way to handle overflow 'auto' when the content size is too
> > large,
> > > &gt;  &gt;  - the close button creation should rely on a property of the
> > bubble,
> > > &gt;  &gt;  - a well documented procedure on how to create the decoration
> > bubble
> > > &gt;  properties (an image with dimensions is available on the
> > framedPopups.html
> > > &gt;  example page though)
> > > &gt;  &gt;
> > > &gt;
> > > &gt;  Pierre!!!! This is great work. I've got a window to do some OL work,
> > so
> > > &gt;  I'm going to take this excellent patch and I'm going to poke it a
> > bit to
> > > &gt;  see if I can't get it to fit inside the classical (but yes,
> > admittedly,
> > > &gt;  flawed) popup architecture.
> > > &gt;
> > > &gt;  Give me a day or so and let's see how it advances. Big Big Big
> > thanks for
> > > &gt;  your work on this... you have singlehandedly reeled in the diaspora
> > of the
> > > &gt;  original CloudAmber code. Bravo!
> > > &gt;
> > > &gt; --
> > > &gt; Ticket URL: &lt;http://trac.openlayers.org/ticket/926#comment:15&gt;
> > > &gt; OpenLayers &lt;http://openlayers.org/&gt;
> > > &gt; A free AJAX map viewer
> > > &gt;
> > > &gt; _______________________________________________
> > > &gt; Trac mailing list
> > > &gt; Trac at openlayers.org
> > > &gt; http://openlayers.org/mailman/listinfo/trac
> > > &gt;
> > > _______________________________________________
> > > Dev mailing list
> > > Dev at openlayers.org
> > > http://openlayers.org/mailman/listinfo/dev
> > >
> > >
> >
> >
> >
> >
>



More information about the Dev mailing list