Was about to tear out my hair trying to figure out what I'm doing wrong that my nice OpenLayers Map view won't display a map... and then I went back to the zzolo sandbox example and realized it wasn't showing a map either.
So I opened Safari (I'm on a Mac). OK on Safari (both examples). Chrome, OK. Firefox, OK. Opera (v 10.10 for Mac)--nothing. Just an empty space where the map should be.
Although, interestingly enough, the map shows just fine when there are no markers on it. For instance, it displays fine when I am creating the preset. But then when you put it into a view, the map disappears (Hence why I thought it was a problem with my view settings). There's nothing. No map, no zoom bars, no markers--nothing.
| Comment | File | Size | Author |
|---|
Comments
Comment #1
sjf commentedI have this problem also. I've narrowed it down to having too many markers on the map. I have 43 nodes to display on a Views map in a block - works fine in FF, IE8, Safari and Chrome, but I get a grey box in IE6 and Opera.
If I reduce the number of nodes to display in my View settings to 24, it works in Opera/IE6. If I set it to 25 or above, it fails. When failing, it also breaks the Javascript for anything else on the page (e.g. another Quicktabs block doesn't work).
The number isn't hard set - in another map, I'm showing 45 nodes. I can only display 31 before it breaks in Opera and IE6.
(NB: I'm using the patch in #609092: Maps not working in IE to otherwise achieve IE6 functionality)
Comment #2
tmcw commentedAre any of these examples online? I'd like to test them out, and see if this is a bug upstream (in the OpenLayers javascript library, not in this module). I'm surprised that Opera is choking on data that IE6 can handle...
Comment #3
tmcw commented(I mean IE8)
Comment #4
filmshed commentedTry http://filmshed.org/projects - works fine in IE8, FF, Safari, Chrome, not so well in Opera. Works fine in Opera if I reduce the number of nodes displayed to around 20
Then try http://filmshed.org/projects/wallet - works fine in Opera as it only contains one node.
Comment #5
zzolo commentedI looked at this for just a few minutes and can confirm the behavior in Opera on a Mac. I turned on the Opera's developers tools but did not notice anything unusual or any inconsistent errors.
Comment #6
tmcw commentedOpera's dev tools do reveal a small clue to the error: the CDATA tag gets a 'syntax error while loading.' This is kind of like PHP errors when it comes after stuff, but anyway, I diffed the HTML of the two pages and the second has lightbox2 and views ajax loading included. I'm pretty sure views ajax loading isn't the culprit, and thinking that lightbox2 is. Notably, running the main lightbox code through jslint (.com) reveals an unclosed string on line 128, which is the kind of thing that could trigger this error if it's in a browser with tighter js evaluation. Try disabling lightbox on the page or fixing that line of code (lightbox isn't understanding how Javascript does multiline strings) and seeing if the error disappears.
Comment #7
filmshed commentedThanks for the feedback. I corrected the lightbox code, and even uninstalled Lightbox at one point, but the problem remains.
Comment #8
tmcw commentedHmm, another possibility is the fact that these pages don't validate because either the text or wkb content includes non-UTF8 characters?
Comment #9
filmshed commentedThat's true, but http://filmshed.org/projects/wallet doesn't validate either and the map shows fine on that page.
Comment #10
zzolo commentedChanging to support request, because a bug has not been identified, just a symptom of a possible bug.
I the next step in troubleshooting would be to set up a very basic install (Just Drupal and OpenLayers) and create maps that have a variable number of points.
Comment #11
zzolo commented@filmshed, have you been able to make any headway on this?
Comment #12
zzolo commentedNo word on this in about 4 weeks, closing. Re-open if necessary.