Greetings,
First, this is not a support request or anything of the kind. It is a hint for the users that, as a community, might find a solution.
Problem : it some cases, the map is shown perfectly but the placemark is oddly off the map. This is not at all caused or related to map sizes nor the descriptive GoogleMap bubble, and is not the usual behaviour of this module.
Cause : in the CCK settings for your fields, if you place the field in a group select that it should be folded and unfoldable by users, this is when this problem will occur. It does not occur under any of the other settings.
( For the maintainer : this post is not related to issues of map sizes or any Googlemap behaviour. I am posting to help others and in case someone might know a solution (CSS folding maybe?).)
Other free tip : if you want to hide the Googlemap descriptive bubble, simply enter &iwloc=near at line 108. You can also add t=h if you prefer the satellite version of the map. It should look like this.
$map = 'http://maps.google.com/maps?f=q&source=s_q&geocode=&q='. $code .'&ie=UTF8&z=15&output=embed&t=h&iwloc=near';
Comments
Comment #1
michael_lessard_micles.biz commentedComplementary info for the free tip mentioned above :
I forgot to mention that
- it is line 108 of the file: embed_gmap.module
- z=15 is a zoom level.
So, to be more precise and helpful, you can modify line 108 as follows :
* To remove the Google Map bubble: &iwloc=near
* Satellite version of the map: &t=h
* Terrain version of the map: &t=p
* default Plan map: [nothing, so remove any &t=h or &t=p]
* To set the initial zoom level: &z=0 to &z=15 [note: &z=0 is the world map ]
EDIT : please note these tips-tricks only work for simple addresses entered in the field. If you enter a full copy-pasted Google Map link, these mods will have no effect, since the a full Google Map link already includes &t= &z= etc. But it will *not* cause any crash or any error either.
In my case, this is fine, because my users are simply asked to enter a very basic address (eg.: 435 The Street West, Quebec, QC).
Comment #2
MarkSyms commentedI'm also seeing this when using a view with an accordion view style to aggregate data from several nodes. On visiting the individual nodes the maps are displayed correctly but when the nodes have been placed in the accordion by the view the placemark is offset. If I set the accordion to start with the first row open then the map for that row is displayed correctly even after selecting another row (which causes the first to close) and then reopening the first. Behaviour is the same in both Firefox and Chromium on Linux but it does seem to be something to do with rendering the map when not on display. Also tested with Internet Explorer on WInXP with the same results. Using the Google iframe (from "Paste HTML" on Google Maps) also doesn't work even though it produces a very different reference URL.
Comment #3
Raf commentedPlain vanilla Google Maps without Drupal around it gives that problem too. For some reason, the infobox thingamajing is way bigger than it should be in IE, which requires for the map size to be bigger (which often isn't an option). It's not something Drupal's doing, but it's somewhere between Google Maps and IE.
Comment #4
caserman commentedI changed this lines to look the same in IE. Actualy i removed buble and target="_blank"
In line 108
$map = 'http://maps.google.com/maps?f=q&source=s_q&geocode=&q='. $code .'&ie=UTF8&z=16&output=embed&t=h&iwloc=near';in line 253
return '<iframe width="'. $width .'" height="'. $height .'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'. $element['#item']['value'] .'"></iframe><p class="embed-gmap-link"><a href="'. str_replace('&output=embed', '', $element['#item']['value']) .'">'. t('Show large map') .'</a></p>';Comment #5
emcniece commentedAlso having this issue, but it worked out. I'm using the field in QuickTabs, and when you flip over to the map tab the thing renders, but the map is to the right of the actual marker.
Get this though.. it does that when the quicktabs are set to load all tabs on page load. I switched the behavior over to AJAX so it only loads the first tab on page load, and loads the other tabs (map tab included) when you click on them.
The map renders properly :D