Recent changes in the Google Maps API for JavaScript caused an issue with the maps – clicking on a cluster would cause all clusters to vanish, and the contained icons not displayed.
Version 3.07 fixes that issue (mainly in an updated mesonet-map.js file). Also, the mesonet-map.php and wxmesonetmap.php pages were changed to use https:// to load the Google Map script from the google site.
The MESO-images file has two new images (–.gif and —sm.gif) to handle stations that have no wind direction in the reports.
The attached .zip has all the updates needed, or you can download the full package from here
Whew… took me about 12 hrs of debugging the markerclusterer script to find the ONE line that need to be inserted to fix the issue.
Uncaught TypeError: Cannot read property ‘apply’ of undefined
at Object.trigger (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:120)
at Tc (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:50)
at Ug._.J.bindTo (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:123)
at new _.Uv (common.js:152)
at Object.xz.f (map.js:84)
at Array. (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:92)
at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:125
at Object. (js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:60)
at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:125
at js?key=AIzaSyA499ykaoUpr3YquZtJUtOcFFMgdjNKniU&language=en:60
in Microsoft Edge it says:
SCRIPT5007: SCRIPT5007: Unable to get property ‘apply’ of undefined or null reference js (120,483)
It looks like a Google Map API issue (it’s their code that is causing the halt)… I’ll continue to investigate.
Further testing shows it works in GoogleMaps v=3.30 and v=3.31 but fails with the new(default) v=3.32
So you can use &v=3.30 or &v=3.31 and the map will work. Using the default or &v=3.32 will fail. Very strange.
I’m trying to dissect the mesonet-map.js code to see where the failure really lies. Meanwhile, the quake-json map works fine with the default, as does the global-map scripts (which use much of the same code).