Sometimes I get a situation where semantic maps fails to load up a google map, and instead shows a gray box with the message "Loading map...". The queries being used to display the maps don't seem to make any difference, but here's a couple of examples:
{{#ask: [[Type::{{PAGENAME}}]]
?Location |
format=map |
zoom=2 |
autozoom=off |
}}
{{#ask: [[Category:SomeCategory]] [[Belongs to::{{PAGENAME}}]] [[Location::+]]
? |
sort=Sighting date |
order=descending |
limit=1 |
}}
I thought maybe there was a problem with my web browser, so I tried it on a few different browsers, and got essentially the same errors:
Opera Dragonfly says this:
Uncaught exception: ReferenceError: Undefined variable: mwmaps
Uncaught exception: ReferenceError: Undefined variable: mwmaps
Uncaught exception: TypeError: Cannot convert 'window.mwmaps' to object Event thread: DOMContentLoaded
Google Chrome's Inspector says this:
Uncaught ReferenceError: mwmaps is not defined
Uncaught TypeError: Cannot read property 'googlemaps3' of undefined
Firefox's Firebug says this:
mwmaps is not defined
[Break On This Error] <div id="map_google3_2" style="width: ...,"label":"","locations":[]};</script>
mwmaps is not defined
[Break On This Error] <div id="map_google3_3" style="width: ...,"label":"","locations":[]};</script>
window.mwmaps is undefined
[Break On This Error] setTimeout(this,100);}};setTilt();}_th...ot compatible with Google Maps v3."});
I haven't been able to figure out what can reliably cause this to occur, but I did discover that moving the map around the page can cause it to go away. In particular, moving it to the top of the page will sometimes fix it, especially if the map appears twice both at the top of the page and elsewhere in the page.
Sometimes simply putting the map at the top of the page makes it suddenly work again. Putting a single map at the bottom of the page has not caused it to work, but if there's an identical map at the top of the page, it might start working again.
Version: unspecified
Severity: major