It’s been about 10 years since the first regional weather network (Southwestern) offered a mesonet map with rotating conditions display. Now with 39 active regional networks, it was time for an update to the display software that makes it easier on both member stations and the regional admins to display and maintain the mesonet maps.
I’ve just completed a V3.00 of the Regional Mesonet Map code (formerly [netID]-mesomap.php, now just mesonet-map.php or wxmesonetmap.php with my template ). This could be completed only after I found a markerWithLabels that could work with markerClusterer in the maps… that didn’t exist until recently, and I’d been looking since 2014 for a good one.
This one code base is multilingual with built in mesonet-map-lang-LL.txt files and has settings in mesonet-map-settings.php. All the languages supported by the Regional networks are included. It does produce only ISO-9959-n character codes (sorry… had to do that for template compatibility).
As it’s Google-based, it needs a Google Browser JavaScript Map API key (like the global-map.php code) which can be set in the mesonet-map-settings.php or a global $SITE[‘googleAPI’] key like the global-map.php.
I’ve put together some docs at Saratoga-Weather.org - Scripts - Regional Mesonet Google Map and you can download the package from there.
Hopefully, it will make it easier for the regional network admins to maintain, as it’s driven from the [netID]-stations-cc.txt and [netID]-conditions.txt files on each regional hub. I think each hub-master will have to decide to use the new one in place of the original one for their network, but anybody can use the new mesonet-map.php on their website.
The master regional networks definition file is maintained on northamericanweather.net/mesonet-map-networks.txt and the script fetches it every 6 hours normally. The data and stations files are fetched every 5 minutes from the regional hub for that network for display.
My thanks to Wim (Leuven template), for the idea to use tabber.js to have easy toggling between map, conditions, station features, and regional networks links tabs – it made the presentation much easier and compact.
For regional network member stations, you won’t have to run the mesomap-update-utility.php to keep your map in sync with the regional hub for your network – the software will ensure the display is always up-to-date. Your network hub does not have to switch to the new map for you to use this map instead of the [netID]-mesomap.php on your site.
If your network hub does switch to this software, then you will need to use it too as the old map will no longer display accurately the conditions at station locations on the old graphic map.
For regional network admins, if you implement for your regional network, you can put ‘0,0,0,0’ for the coordinates of new stations in the [netID]-stations-cc.txt file and just make sure the latitude/longitude is set correctly.
And, you won’t need to use Paint.NET to edit the graphic any more… just the one [netID]-stations-cc.txt file would need to be maintained in the same manner as before. Please let me know if you decide to implement on your network to replace the original [netID]-mesomap.php, and also let your member stations know if you elect to switch the network to using the V3 software for maps.
Best regards,
Ken