Hey there,

I wonder if anyone has the same issue: I'm using a Geofield Map which gets geocoded by an addressfield. Everything works fine except that the info layers / tooltip that appear when clicking on a map marker is completly broken accross all major browsers (latest stable versions of Chrome, FF and IE9).

Only Firefox shows a script error:

TypeError: n.google is undefined
...(T[H],function(){return"("+this.x+", "+this.y+")"});T[H].b=function(a){return!a?...

in main.js, line 24
(http://maps.gstatic.com/intl/de_de/mapfiles/api-3/12/7/main.js)

Cheers,
Daniel

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Daniel Wentsch’s picture

Forgot to attach a screenshot.

Daniel Wentsch’s picture

Update: must be some incompatibility, on a vanilla setup with only geofield, addressfield, geocoder and views everything works nicely.

Daniel Wentsch’s picture

Status: Needs review » Closed (fixed)

Okay, finally resolved it. It was a pure CSS problem caused by my theme.

Just in case anybody else has this problem:
I had a max-width of 100% applied to all my image tags, which, as it seems, Gmaps doesn't like too much. I fixed it by resetting all images inside the geofield:

img { max-width: 100%; }
.geofieldMap img {max-width: none; }
Daniel Wentsch’s picture

Category: bug » support
Status: Active » Closed (fixed)
MiniEggs’s picture

Category: support » bug
Status: Closed (fixed) » Needs review

I had the same problem, so many thanks for tracking down the source.
Your CSS didn't quite work for me. I needed:
.geofieldMap img {max-width: none; }

I'm using a Zen subtheme by the way, and their default normalize css sets images max-width to 100%.
As it seems pretty standard for normailze css files, it's probably worth incorporating some form of the above css into the Geofield Maps module to avoid similar problems in future. If it hasn't been already.

Daniel Wentsch’s picture

Status: Closed (fixed) » Needs review

Oh, sorry, of course my CSS should read the same as yours, triggering image tags inside the geofieldMap container (I edited my previous post to avoid confusion).
Yep, I also think it's a good idea to include this by default.

chevron’s picture

I'm having the same problem. Please fix this in the next release!

nevergone’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
FileSize
1.13 KB

Needs review and testing.

nevergone’s picture

Views support.

Brandonian’s picture

Thanks for the patch, @nevergone! Committed to 7.x-2.x

http://drupalcode.org/project/geofield.git/commit/e8fb603

Brandonian’s picture

Status: Needs review » Fixed

Marking as fixed.

nevergone’s picture

Status: Fixed » Patch (to be ported)

Originally 7.x 1.x. I have developed, you can add to it please.

Brandonian’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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