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
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 1966296-geofield_map_broken_tooltip_2.patch | 1.88 KB | nevergone |
| #8 | 1966296-geofield_map_broken_tooltip.patch | 1.13 KB | nevergone |
| #1 | Google Maps info tooltip broken | 55.57 KB | daniel wentsch |
Comments
Comment #1
daniel wentsch commentedForgot to attach a screenshot.
Comment #2
daniel wentsch commentedUpdate: must be some incompatibility, on a vanilla setup with only geofield, addressfield, geocoder and views everything works nicely.
Comment #3
daniel wentsch commentedOkay, 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:
Comment #4
daniel wentsch commentedComment #5
MiniEggs commentedI 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.
Comment #6
daniel wentsch commentedOh, 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.
Comment #7
chevron commentedI'm having the same problem. Please fix this in the next release!
Comment #8
nevergoneNeeds review and testing.
Comment #9
nevergoneViews support.
Comment #10
Brandonian commentedThanks for the patch, @nevergone! Committed to 7.x-2.x
http://drupalcode.org/project/geofield.git/commit/e8fb603
Comment #11
Brandonian commentedMarking as fixed.
Comment #12
nevergoneOriginally 7.x 1.x. I have developed, you can add to it please.
Comment #13
Brandonian commentedCommitted to 7.x-1.x.
http://drupalcode.org/project/geofield.git/commit/ea51340