[OpenLayers-Users] Framed Cloud Popup - Tail interferring with
layer
Christopher Schmidt
crschmidt at metacarta.com
Fri Jun 12 11:18:16 EDT 2009
On Fri, Jun 12, 2009 at 09:39:28AM -0500, David Fawcett wrote:
> I was looking into this issue several months ago, but didn't get very far.
The problem is simple, centered around our event registration. Popups
have events. We register popup events on the whole element -- this
includes the tail. A possible solution is to change popup events to only
be on the content div, or to change popup events to allow clicks
through, or any number of other things. There are side effects to any
proposed solution that I can think of, but it's likely that for the
common case, the side effects are less negative than the current primary
effect.
> I am sure that Google implements their popups in a different way, but
> this doesn't seem to be an issue in Google maps. I guess that they
> just destroy a popup when you click near the tail, this allows you to
> create a new popup with your next click. I assume that one could
> customize their own popups to do this. Of course, you wouldn't be
> able to have multiple popups for nearby features.
>
> Shawn, can you share the URL to the example in the sandbox?
>
> Thanks,
>
> David.
>
> On Fri, Jun 12, 2009 at 8:30 AM, Shawn Oatley<shawn at niagarafalls.ca> wrote:
> > Thanks for the idea. I found a copy of one in the sandbox seems to work
> > much better!!
> >
> > Shawn
> >>>> On 6/12/2009 at 7:43 AM, Christopher Schmidt <crschmidt at metacarta.com>
> >>>> wrote:
> > On Fri, Jun 12, 2009 at 04:06:40AM -0700, soatley wrote:
> >>
> >> I am having a problem using the popups to display data and have confirmed
> >> it
> >> with the 'Popup Matrix' example :
> >> http://www.openlayers.com/dev/examples/popupMatrix.html
> >>
> >> To re-create, click on the very bottom row of popups (overflow:hidden) of
> >> the first 'min size (400X400)' column. You should see the popup appear
> >> above the row. Now try and click on one of the markers right by the tail.
> >> The easiest one to try is the marker right above the one you just clicked
> >> on.
> >>
> >> This happens in Firefox, Safari and IE 8 (haven't tried 7). In
> >> Firefox/Safari, it is worse than IE. In IE, it is just the markers by the
> >> tail that are affected. In the others, it is the markers that are below
> >> the
> >> popup but parallel to the tail.
> >>
> >> This is a problem for me because I use popups to show property information
> >> and quite often, the properties are beside one-and-other or in that area
> >> below the popup.
> >>
> >> Has anyone tried a work-around for this?
> >
> > I created a popup with a smaller tail for my applications as a
> > workaround to this. It's definitely not browser specific, and has always
> > affected the code.
> >
> > Good luck.
> >
> > Regards,
> > --
> > Christopher Schmidt
> > MetaCarta
> >
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
> >
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list