[OpenLayers-Users] [OpenLayers-Dev] New, sexy, popups -- I need your help! -- GIMP/Inkscape users?

Erik Uzureau euzuro at gmail.com
Tue Feb 19 12:27:30 EST 2008


Hi Rupert,

A big, continued, thanks! for working with these new popups. It is a
big help to have someone
trying them out.

The reason you are having error [2] is because you actually need to
apply some changes to other
core OpenLayers classes in order to get the full functionality of the
new popups.

This morning I sat down and updated the sandbox to the latest from
trunk and then created a new
patch file[a] so that you can easily get up to speed.

You should be able to just download that patch file and apply it to
your version of OL with no problems.
Let me know if you encounter any issues, I am glad to help with this.

Erik


[a] http://trac.openlayers.org/attachment/ticket/926/popups.patch

On Feb 19, 2008 5:58 AM, Rupert de Guzman <rndguzmanjr at gmail.com> wrote:
> Hi Erik,
>
> Thank you for the link of the latest version.
>
> [1] Grabbed Framed.js, FramedCloud.js, AmberCloud.js from
> http://dev.openlayers.org/sandbox/euzuro/pop/
>
> [2] I have to comment out lines Framed.js:#187,354 to make it work though.
>
> this.fixPadding()
>
> Regards,
>
> Rupert
>
>
> On Feb 19, 2008 12:02 AM, Erik Uzureau <euzuro at gmail.com> wrote:
> > Actually, reading it over again, it looks like you were looking at
> > pierre's original version of this
> > effort. The latest version is in my sandbox, here:
> >
> > http://dev.openlayers.org/sandbox/euzuro/pop/examples/framedPopups.html
> >
> > ...and I have replaced that iteration, so it should work correctly.
> >
> > Please do let me know if you find some problems.
> > Erik
> >
> >
> > On Feb 18, 2008 9:53 AM, Erik Uzureau <euzuro at gmail.com> wrote:
> > > Thanks Rupert! I'll change that right away
> > > erik
> > >
> > >
> > > On Feb 18, 2008 6:20 AM, Rupert de Guzman <rndguzmanjr at gmail.com> wrote:
> > > > Hi Erik,
> > > >
> > > > [1] Demo is really nice.
> > > >
> > > > [2] I downloaded
> > > > (http://dev.openlayers.org/sandbox/camptocamp/FramedPopups/lib/OpenLayers/Popup/FramedBubble.js
> > > > ) and tested but it did not work for my OpenLayers + ExtJS app. The
> > > > array problem bit me. Just a note to others who may encounter the same
> > > > issue.
> > > >
> > > > for (var i in blocks) {
> > > >
> > > > should be
> > > >
> > > > for (var i = 0; i < blocks.length; i ++){
> > > >
> > > > Regards,
> > > >
> > > > Rupert
> > > >
> > > >
> > > >
> > > > On Feb 15, 2008 4:42 PM, Erik Uzureau <euzuro at gmail.com> wrote:
> > > > > Dear Dev and Users,
> > > > >
> > > > > I have been working the last week or so on getting a new style of
> > > > > openlayers popups coded and
> > > > > up to speed.
> > > > >
> > > > > The original version was developed and graciously contributed by the
> > > > > folks at CloudAmber.
> > > > >
> > > > > Two weeks ago, the good and noble Pierre Giraud took the CloudAmber
> > > > > code and some code
> > > > > worked on by the amazing people at TOPP, smooshed them together into
> > > > > the following demo:
> > > > > http://dev.openlayers.org/sandbox/camptocamp/FramedPopups/examples/framedPopups.html
> > > > >
> > > > > ...which was an amazing job and the real catalyst in this whole situation.
> > > > >
> > > > >
> > > > > At the TOPP coding bunker, I took this sandbox, played around with it
> > > > > a little bit, and came up
> > > > > with a design that allowed us all the functionality of the above two
> > > > > revisions, plus:
> > > > >
> > > > > * inherits from OpenLayers.Popup.Anchored (instead of re-implementing
> > > > > a ton of functions)
> > > > > * bubbles up the 'autoSize' and 'panIntoView' functions to the base
> > > > > Popup class so that everyone
> > > > >  can use them
> > > > >
> > > > > and finally
> > > > >
> > > > > * allows the popup to be framed in all four relative directions (tl,
> > > > > tr, bl, br) by merely adding some
> > > > >   new framing code.
> > > > >
> > > > >
> > > > > The last bit here is where I've reached the limits of my own
> > > > > knowledge. For whatever reason, I
> > > > > have repeatedly been unsuccessful at producing an alpha-layered image,
> > > > > despite valiant efforts.
> > > > >
> > > > > Therefore, my killer demo of the new, sexy popup looks like this:
> > > > > http://dev.openlayers.org/sandbox/euzuro/pop/examples/framedPopups.html
> > > > >
> > > > > The problem, then, is that this image:
> > > > > http://trac.openlayers.org/browser/sandbox/euzuro/pop/img/cloud-popup-relative.PNG
> > > > >
> > > > > is not properly alpha-ized.
> > > > >
> > > > > And so I ask your help. Is there anyone out there who could help me to
> > > > > re-alpha-ize the image?
> > > > > There will be some tricky issues with the shadows, and perhaps it
> > > > > would be easier to start with
> > > > > this original one:
> > > > > http://trac.openlayers.org/browser/sandbox/camptocamp/FramedPopups/img/popup.png
> > > > > ..and then add the three new stems yourself.
> > > > >
> > > > >
> > > > > Anyways, hopefully this email isn't already too long that anyone will
> > > > > actually read it. If you think
> > > > > you could help me, please drop me a line.
> > > > >
> > > > > Best,
> > > > > Erik
> > > >
> > > > > _______________________________________________
> > > > > Dev mailing list
> > > > > Dev at openlayers.org
> > > > > http://openlayers.org/mailman/listinfo/dev
> > > > >
> > > >
> > >
> >
>



More information about the Users mailing list