Markers not loading in IE7-9

462 views
Skip to first unread message

Mike

unread,
Sep 14, 2011, 10:36:30 AM9/14/11
to google-map...@googlegroups.com
Hi,

There is a problem with my Gmap loading markers in IE7 - 9.

On the first search the map will load correctly along with the markers.

The problem is when a new search is made, the map will load correctly but no markers appear.

This problem does not occur in firefox, chrome, safari or opera. Only in IE 7 - 9. 

My map can be found at www.lemonbricks.com 

Areas where markers can be found:

London, UK
Manchester, UK
Aylesbury, UK
Wallingford, Oxford, UK
leicester, UK

If anybody can shed any light on the matter, I'd be much appreciated.

Thanks, Mike

Ralph

unread,
Sep 14, 2011, 4:54:04 PM9/14/11
to google-map...@googlegroups.com
Seems to working ok for me using IE9, I get markers on the map.

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/HNkGyrUpMgsJ.
> To post to this group, send email to
> google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Mike

unread,
Sep 14, 2011, 5:00:20 PM9/14/11
to google-map...@googlegroups.com
Hi Ralph,

Thanks for that. However, did you try performing multiple searches? It seemed to load up markers on the first search but then on further searches the markers failed to load.

Thanks, Mike

Ralph

unread,
Sep 14, 2011, 5:23:25 PM9/14/11
to google-map...@googlegroups.com
Yes, I searched London, Manchester, South shields and back to London.

Using this page

http://www.lemonbricks.com/index.php?r=search/search&search=london&buy_rent=buy

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-maps-js-api-v3/-/Ti3VYUyM1AoJ.

Mike

unread,
Sep 14, 2011, 5:34:25 PM9/14/11
to google-map...@googlegroups.com
Hi Ralph,

In IE9 if you press F12 it will allow you to change the browser type to IE7 and IE8. Could you do this for me and see if the results are the same. I don't understand because I've tested this on a slow laptop with IE9 and a fast desktop with IE9 both producing the same result; Not loading new markers when performing multiple searches.

Thanks, Mike

Ralph

unread,
Sep 14, 2011, 5:52:25 PM9/14/11
to google-map...@googlegroups.com
Ok, I have tested with IE7 & IE8 and I get markers on all searches.

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-maps-js-api-v3/-/B29fPK4hXWIJ.

Mike

unread,
Sep 14, 2011, 5:56:46 PM9/14/11
to google-map...@googlegroups.com
Hi Ralph,

Well, I am glad that it is working...although with the tests on our end we find that we have to clear the browsing history each time before a new search in order to get markers displaying on every search. I don't understand why it would work for you but not for us. 
Do you have any friends that could carry out some tests in IE?

Can anybody confirm this or suggest reasons on these anomalies?

Thanks, Mike

Ralph

unread,
Sep 14, 2011, 6:12:25 PM9/14/11
to google-map...@googlegroups.com
What setting are you using for "Temporary Internet Files"?

Mine is set to "Every time I visit the webpage"

Just a thought.

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-maps-js-api-v3/-/pgZOhuO9eNMJ.

Mike

unread,
Sep 14, 2011, 6:35:20 PM9/14/11
to google-map...@googlegroups.com
Thanks for the reply. My "Temp Internet Files" in IE was set to automatic. When I changed it to  "Every time I visit the webpage" then it loaded the markers on every search. Is there a way to set the "automatic" behaviour similar to the "Every time I visit the webpage" from my webserver? As not all users would have that setting checked. 

However, I've noticed a new problem in IE now. The clustered markers won't load the infowindows. If you check this in chrome/firefox/safari you'll see whats supposed to happen. Is there a way to fix this for IE?

Thanks, Mike 

Ralph

unread,
Sep 14, 2011, 8:00:47 PM9/14/11
to google-map...@googlegroups.com
Just another thought, in query string's add a random variable

http://www.lemonbricks.com/index.php?r=search/search&search=manchester&buy_rent=buy

Something like this

http://www.lemonbricks.com/index.php?r=search/search&search=manchester&buy_rent=buy&random=243629487098

It might not solve the problem, but certainly worth trying.

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-maps-js-api-v3/-/4qnFZ2CBcKoJ.

Mike

unread,
Sep 15, 2011, 3:43:18 AM9/15/11
to google-map...@googlegroups.com
what does the random= do? And how do I implement it?

Thanks, Mike

Rossko

unread,
Sep 15, 2011, 5:49:15 AM9/15/11
to Google Maps JavaScript API v3
> what does the random= do? And how do I implement it?

Search for "cache busting"
It's a general technique, not maps specific.

MymsMan

unread,
Sep 15, 2011, 6:01:53 AM9/15/11
to google-map...@googlegroups.com
I can also see your problem with IE8 and the Automatic setting on Temp Internet Files, it goes away with Every Time option.

The idea of the random parameter is that is does nothing except attempt to persuade IE that it needs to refresh its cache.
You can try it out just by typing it it on the the end of your URL but eventually you would add a small bit of code to your form submission to add it to your search arguments


Mike

unread,
Sep 15, 2011, 3:17:53 PM9/15/11
to google-map...@googlegroups.com
Hi,

Thank you for telling me about the cache buster. It's something I hadn't come across before but it looks like it should do the trick! I don't know why IE caches the ajax requests...

Is anybody able to explain why the infowindows don't open when clicking on a clustered marker in IE7 - 9? Works fine in chrome, firefox, safari and opera.

Much appreciated!
-Mike

MymsMan

unread,
Sep 15, 2011, 5:21:27 PM9/15/11
to google-map...@googlegroups.com
I can open the clustered markers in IE9 and see your log messages:
LOG: Number of markers inside cluster: 2
LOG: Number of markers inside cluster: 2
LOG: Number of markers inside cluster: 15
LOG: Number of markers inside cluster: 22
LOG: Number of markers inside cluster: 22
LOG: Number of markers inside cluster: 22
LOG: Number of markers inside cluster: 10

Ralph

unread,
Sep 15, 2011, 5:47:00 PM9/15/11
to google-map...@googlegroups.com
There might be a console.log statement that's not commented out
somewhere in the clustering code.

Ralph

> --
> You received this message because you are subscribed to the Google
> Groups "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit

> https://groups.google.com/d/msg/google-maps-js-api-v3/-/jOzyfGyOsqwJ.

MymsMan

unread,
Sep 16, 2011, 5:11:40 AM9/16/11
to google-map...@googlegroups.com
You probably don't need the cluster of 1479 properties off the coast of Africa at location 0, 0 ! 

I found that while I could click on small clusters and get the infowindow, there is no action (in any browser) for clusters larger than about 25.

Mike

unread,
Sep 16, 2011, 11:51:44 AM9/16/11
to google-map...@googlegroups.com
Hi,

I want to thank you all for you're posts. The IE7 - 9 problems have now been fixed!

Markers failing to load was caused by IE caching the AJAX requests - solved with cache busting (using time stamps)
Infowindows for clustered markers not loading in IE9 was a result of the console logs - solved by removing the logs

Thanks,
-Mike
Reply all
Reply to author
Forward
0 new messages