Hi,

thanks for this fantastic module! I'm using OpenLayers to display a map with nodes (represented as circles) with tooltips .. Is there a way to link those circles to the node? Or to add additional information to the tooltip (e.g. cck-fields)

Thanks :)

Comments

zzolo’s picture

Thanks! Well, you should be able to add a title and description to your tooltips. These fields can be links to the node as this is managed in Views fields, not in OpenLayers.

Anonymous’s picture

Status: Active » Fixed

Thanks :)

But then I have the problem, that the tooltip disappears whenever I try to reach it with the mouse :(

-- okay .. disable tooltip and only enable "clickable box" .. then it works. Perfect,thanks :)

zzolo’s picture

For the tooltip moves away too quickly, see #733542: tooltips appear and disappear too quickly in IE

Also, could you confirm (in the other ticket), that you see this behavior in the 2.x version as well (as so far it has only been seen in the 1.x version).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

milesw’s picture

Now that a couple months have passed, is this kind of linking possible? I'm hoping to do the same thing as the OP here - link point features (correct terminology?) to nodes. But I still want to use the tooltip to display other content. It seems many OpenLayers maps are doing this exact thing, including afghanistanelectiondata.org and many of DevelopmentSeed's beautiful maps.

I'm still very new at all this. Would this functionality require a custom behavior or am I missing something obvious?

tmcw’s picture

Status: Closed (fixed) » Active

milesw: if you're looking for functionality like that in afghanistanelectiondata, check out the OpenLayers Plus module, that contains a tooltip and popup replacement, the tooltip of which provides on-click linking to nodes.

milesw’s picture

Tom:
Actually I've been playing around with OpenLayers Plus already. Your tooltips and popups are awesome -- very close to the result I'm looking for. And messing with OL+ has also helped me understand how behaviors can be implemented, so thanks for sharing the package :)

Unless I'm missing something, I don't see a behavior that turns the actual point into a link. Obviously it's possible though. Does it require writing a new behavior?

tmcw’s picture

The OpenLayers Plus Tooltips behavior actually turns points into links - when you click on them, it'll bring you to the linked node - you can see the logic here - http://haitiaidmap.org/profiles/quest/modules/custom/openlayers_plus/beh...

milesw’s picture

Yup, it does exactly as you say it does. My problem was that I was grouping nodes - don't know how I expected that to work.

And thanks for pointing out the JS logic. I saw that it looks for the very first anchor tag, so I was able to get links to taxonomy pages working also.

tmcw’s picture

Status: Active » Closed (works as designed)

Marking this as by design.