Drupal 5.3 using Gmap 5.x-1.x-dev (Nov 10)
php 5.2 on local server php 4.4.4 on remote server
Using gmap-views. Same for map/node. Maps show markers (simple red or blue marker) in Firefox, IE7, Konqueror but on IE6 there are no markers and the where the navigation should be is only a white background (tool tips are displayed and navigation links are clickable). When viewed in IE6 the map on your demo page donnavanseg@yahoo.ca exhibits the same behavior. Unfortunately almost 50% of the visitors to the site I am designing for use IE6. Everything displays correctly in other browsers.

Comments

Mike Sances’s picture

subscribing

heronog’s picture

I can confirm this, I have a gmap/location.module view that works in every browser except IE6.

I can see the javascript code that defines the marker in the map, and I can see the map perfectly, even zoom and pan work as expected, but the marker is not shown. Also when switching themes (I am using Zen for testing the site) the markers don´t show as configured in the settings page, instead it shows the usual google maps pink marker.

I am guessing this has to do with CSS, but i don´t really know as I don´t know how the markers presentation is defined, but I guess it would be worth a look.

Node locations AND the macro in the nodes are showing up correctly. It´s just in the view that it´s not working.

benjamenjohnson’s picture

I can confirm the problem is at least as old as Oct-22nd.

I'm running the Oct 22nd version and the markers are displaying in some visitor's IE6 but not in others who are also running IE6 (I can't duplicate the problem running IE6 under a W2K virtual machine either).

I'm not running location and my map is in a page content type.

dries arnolds’s picture

Adding this to your html tag in your template helped for me, at least partially:
xmlns:v="urn:schemas-microsoft-com:vml"

The only thing not working in IE are the numbered markers. The first marker ("0") appears but after that everything stops, even regular markers on other maps below the first don't appear anymore.

natuk’s picture

Same problem over here, adding the xmlns:v declaration did not make any difference though.

benjamenjohnson’s picture

To add more information: I've narrowed it down to IE6 SP2 (which is only available in Windows XP) The real stinker is that I can't always get it to fail. Under Microsoft's VPC IE6 doesn't have any problems (yes it's SP2), another computer with the named browser OS combo has the problem and yet another with the same OS browser combo doesn't.

I've lowered all permisions and security settings to the lowest setting and turned off the firewall and AV software.

I've tried adding the xmlns:v declaration also and that doesn't seem to make any difference.

najibx’s picture

Hmm ... in my case, I DO have the marker but NOT the map. In other browser works fine. Here's the URL http://www.successideaweb.com/en/where-are-we-located-googlemap.

I do have


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" lang="en" xml:lang="en">

However, it does show properly, once I click on zoom icon.

najibx’s picture

OK now. Hmm ... it seems to be a conflict with my CSS PNGfix. So, I use Javascript to fix my PNG images, and get GMAP working.
Another issues ...the alignment is not proper now :-)

bdragon’s picture

Status: Active » Fixed

I'm pretty sure my shadow fix would have fixed this too...
Please try again with alpha1 or the latest snapshot.

pkej’s picture

Version: 5.x-1.x-dev » 5.x-1.0-alpha1
Status: Fixed » Active

I'm using the alpha1 and I have the same issues as #4 in this thread. The numbered markers in a feed only shows marker 0, I verified in other browsers on a Mac that it works correctly there. I can't check other versions of IE or browsers running on Windows, as I don't have permission to install other browsers at work. You can see the effect at: http://samipath.kulturarkitektene.no/node/3

The version of the IE6 is sp2 XP Pro. (Version. 6.0.2900.2180.xpsp_sp2_gdr.070227-2254CO).

[gmap zoom=8 |center=69.31249912982253,25.44708251953125 |width=700px |height=360px |control=Small |type=Hybrid|feed=numbers::/taxonomy/term/3,5/0/feed |feed=green::/taxonomy/term/2,5/0/feed |feed=big red::/taxonomy/term/4,5/0/feed ] is the macro I'm using.

eggthing’s picture

Yup. I'm having problems with the exact same verison as well. it's a shame. A lot of people still use this browser cuz Vista was so unstable.

sockah’s picture

I'm having this problem in IE7. Firefox is working fine for me though. Is there a fix for this?

milosh’s picture

I can confirm it from two different computers. One computer runs WinXP SP2 IE 6.0 and another runs WinXP SP2 IE 7.0.

The description of the problem is:

- Gmap view does not center from default location to correct location, where the markers should appear;
- There is only one (first) marker loaded in the map (user should zoom out and move to correct location by hand)
- The marker pop-up does not appear, when clicking in the marker.

Two further observations:
1. I noticed also that maps.google.com cookie is rejected by IE on both cases. Allowing all cookies from google.com does not solve the problem however.
2. All markers are loaded when one browses to map/node. The pop-up's are still not available.

Firefox and Opera are working fine.

sunnydeveloper’s picture

subscribing

Aldus’s picture

I have 4 markers on my map. IE only see ONE marker and doesn't let me open the tooltip when I click it.
Firefox & Opera working normally.
No javascript errors...
What's going on?

Here is my header:

loopy29’s picture

Same problem here:

No markers in IE6, also choosing to view both sattelite and map view (the third choice) only shows the satelite view, which I believe is the bottom layer - so I imagine IE6 just has a problem showing multiple layers on the map. Probably the reason the markers are not showing.

I anyone proficient enough to take a look at this? a lot of people still use IE 6 and will continue to do so.

working fine in IE7 and firefox 2.0.0.12 BTW

alexpott’s picture

I was getting a crash in IE6 as well. But I have managed to fix it. So maybe my fix will work.

I made two changes:

In the gmap_location.module file I fixed the gmap_location_block_view function to use the marker you've actually selected in the admin screens. Change this line:

'markername' => isset($markertypes[$row->type]) ? $markertypes[$row->type] : 'drupal',

...to...

'markername' => isset($markertypes[$node->type]) ? $markertypes[$node->type] : 'drupal',

Then I noticed the Drupal marker crashed IE but the red marker did not. So if you edit misc.ini inside the markers folder you can fix this. Remove the shadow setting from the [defaults] section. So it becomes:

[defaults]
anchorX = 10
anchorY = 29
infoX = 17
infoY = 6

Now my markers are in the correct place in IE and there's no javascript error.

loopy29’s picture

Well, my gmap_location.module already contains the code you mention (gmap version 5.x-1.x-dev) and on top of that I am using the macro function to create my maps, so I do not think the gmap_location module is used. I changed from my own custom logo to the red marker but that did not help. The shadow setting in the markers folder was already commented out. I removed it completely but that did not fix anything.

Can you use the gmap location module to add a map to each single node (that node would have the location information filled in of course. If this is a quick fix that would do.

Any more ideas anyone. Are there many people that do NOT get marker problems in IE6?

BTW, you can look at the problem here
http://www.philex.be/node/24 (you also see the controls of the map are not showing and the view type buttons (map, sattelite, ...) are not drawing as they should. What might be the problem? All shows up fine in IE7 and Firefox

The w3c validator tells me this, but I doubt it is the cause of the troubles:

----------------------------
Line 103, Column 156: document type does not allow element "div" here; missing one of "object", "ins", "del", "map", "button" start-tag.

…ol gmap-gmapgmap gmap-map gmap--gmap"> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. ----------------------------

loopy29’s picture

Update:

I have removed my custom icon from the icons folder which (as you would expect) creates an error message in firefox. That message is not even appearing in IE6, so perhaps they are not even loaded - an error in the script before the loading stage perhaps?

Anyone with good debugging skills?

charlied’s picture

Hi. NOW WORKS and shows default drupal markers but only when loaded todays dev version Last updated: March 12, 2008 - 00:07 - appears this problem now fixed for me.

Previously it didnt work for IE 7.0.5730.11 or IE 6.0.290.2180 but did on Firefox 1.0.6 and 1.5.0.4. On IE viewing map/node only one marker was shown. Running Drupal 5.6 on Windows. Now works on all 4 browser combinations.

Many thanks for a great module and the help above.

milosh’s picture

I can confirm that the latest development snapshot works.

The key seems indeed to be in the shadows as IE as always had problems with png alpha opacity...

So if you don't want to use development version, just try to comment out all shadow="" lines in *.ini files at markers directory.

so
shadow=""
becomes
;shadow=""

bdragon’s picture

I FINALLY figured out the source of the bug.

I had changed the format of shadow to allow for width and height, and I forgot to change the default in the expander to match...

http://drupal.org/cvs?commit=116982

dgtlmoon’s picture

any eta on the next release ?

bdragon’s picture

Status: Active » Fixed

Well, beta1 is out now.

bdragon’s picture

Title: Gmap views no markers in IE6 » [master] The shadow bug

(renaming so I can find it easier.)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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