Last night I submitted a request (and a patch) for a feature that provides a hook which allows other modules can override the default node display in the google map pop-up labels. I was just awake enough to complete that submission, but not to go into the root cause of why I wanted to do such a thing.

The theme on my site uses a derivative of the Fancy Theme. Fancy uses sIFR to do some nice tricks with node labels. In simple terms when applied to node titles, it hides the underlying text and replaces it with a small flash display that fits over the node title. This allows much more interesting fonts on the site while still allowing indexing (the regular text appears on browsers that do not support flash, including web crawlers).

After several frustrating hours of futzing while wondering why my nodes only showed empty bubbles when I clicked on the gmap markers, I finally made the connection. Something in the sIFR logic was not playing well with the rendering of the bubbles. Sure enough, disabling sIFR on my whole site fixed the gmap label problem. sIFR does its magic when the page loads. I believe the problem here is that sIFR is not engaged when the gmap marker labels are brought up - sIFR has already swapped out css styles to make node title text invisible, but didn't create a flash replacement.

My solution was to use a different node rendering within the gmap_location module for the node map only on the node types that I cared to display. That's where the patch to allow modules to override their gmap label display came from - it may not be the only solution to my problem, but it worked. After adding hook_gmapnodelabel support to the gmap_location module, I altered a few of my custom modules to support that hook.

This is the back-context of my patch. I actually don't think there is much you can do about this directly (beyond apply the patch or propose/find a different solution). I thought it would be appropriate to write up both so that you can understand why I want such an odd patch, and second so that others who install the Fancy theme and gmap have a chance to find out what is going on when their node titles do not display.

Comments

kays’s picture

Thank you very much for your investigation. I had the same problem with fancy theme, and I was going to investigate the problem, but I know I would have never solved the problem. Your comment saved a lot of my time. thank you! BTW, I solved the problem by deleting the sifr directory.

kays’s picture

My commnet on #1 may be off the topic here. I was just happy to know where the problem with fancy theme came from. BTW, I found how to cancel the sIFR function in readme file. BTW, why can't I edit my post?

scott.mclewin’s picture

Off topic or not, I'm glad to have saved somebody else some time. Gmap now has the basic plumbing in place to allow modules to make custom gmap-caption displays (my patches were accepted, and then vastly improved upon by webchick). If you want sIFR badly and know how to write a little php, it just takes making a theme function for your nodes that does not emit the sifr class tags on the div that renders inside of the gmap bubble. See the bottom of gmap.module for examples.

scott.mclewin’s picture

Status: Active » Fixed

There's really no point in leaving this open - it's not a bug with gmap specifically, but was really more of a description of a known interaction problem between a theme and a module. Setting to fixed to start the clock ticking on when this issue will be automatically closed. Re-open and explain if you think it deserves to stay open.

Anonymous’s picture

Status: Fixed » Closed (fixed)
gurukripa’s picture

Version: 6.x-1.x-dev » 5.x-1.x-dev

hi
does this problem mentioned in this thread still exist with the Fancy Theme..or has it been fixed in the download available of the theme ..or shld we apply some patch?
if so please mention more details of where to get the patch..and where to put it.
thanks..

i am an amateur..so wouldnt know if there is a conflict..so u guys have to tell me :)

gurukripa’s picture

i forgot to metion that i am using drupal 5.1 not dev...and am using the fancy theme...and yes..some the primary links dont look good..they are grey...wish someone does something on that too :)
and as of now..havent started the gmap module..but thought it would be good..if u guys think so .