If you had the V2.x version on your site, after you do the configuration/upload, be sure to shift-reload in your browser to clear the cache of the old CSS/JavaScript. Also note that if you embedded it in your page previously, the method to invoke the script has changed a bit.. see global-map.php (or wxglobal.php) for the example methods. Also, only the English and Spanish wxglobal-LL.html files were included at this time.. I don't have other examples ready.

This 4.xx version provides for Saratoga template or standalone usage (unlike previous versions with came in separate template/standalone versions)

This version requires no API keys to operate as it uses Leaflet/OpenStreetMapsfor map tile services instead of the prior Google JavaScript Map API.Support is also provided for optional Mapbox.com map tiles if you haveacquired a Mapbox Access Token (API key). Two additional maps will be enabled(Terrain3 and Satellite) with a valid Mapbox Access Token.

Files in the distribution:

global-map-README.txt (this file)

./MESO-images/* Image files used by the map display

global-map-settings.php (this file contains ALL the configuration settings for the script set)

global-map.php (this is a single-page, non-template PHP sample page)

global-map.css (style sheet for all the above pages)global-map.js (common JavaScript routines used by all the global map pages)

global-map-inc.php (generation script used by wxglobal.php or global-map-sample.php pages)

global-map-lang-inc.php (PHP serialize[d] array of language entries for legend text. NOTE: do NOT edit or modify in any way or the script will break)

global-map-genjs-inc.php (generates the JavaScript to control the Leaflet map)

global-conditions-json.php (common script for getting conditions data from the network hub site)\ it will update the following file (so make sure permissions on it are 664 if need be): global-conditions.json

global-links.php (script for getting data/links about the regional networks - it will update the following files (so make sure permissions on them are 664 if need be): member-count.txt members-list-inc.html network-links-inc.html network-list-inc.html

These scripts are used by the wxglobal.php (Saratoga Template):wxglobal.php (global map page for V2 or V3 of Saratoga template set)wxglobal-en.html (English boilerplate page for V2 or V3 of Saratoga template set)wxglobal-es.html (Spanish boilerplate page for V2 or V3 of Saratoga template set)

Configuration for the wxglobal.php or global-map.php pages is in global-map-settings.phpand looks like this:

3) Edit your global-map-settings.php for your desired display configuration and upload. Note: if using the Saratoga template set, you can use the following entries in Settings.php to specify your settings. They will OVERRIDE the similar settings inside global-map-settings.php

I don't use any language translation on my site, Ken, but this is a persistent problem when I try to implement V4.00 of the global-map script set:Warning: global-map-lang-inc.php is not usable. Upload an unmodified copy from the global-map.zip distribution.

I've not modified this file, and I'm unable to easily find and correct the problem in the script set.

Try uploading the global-map-lang-inc.php file in BINARY instead of ASCII and see if that fixes it. If it doesn't, I'll have to switch to using unserialize(base64_decode(...)) to ensure the character fidelity of the non ISO-8859-1 characters in the file.

D'Oh.. I discovered a small issue with the program I'd used to scrape the mesonet-map-lang-LL.txt files and create the single global-map-lang-inc.php script. Try the attached version (unzipped on your site) and see if that fixes the issue.And.. be sure to upload that file in BINARY mode (not ASCII mode).

Ok, with several folks having issues due to ASCII v.s. BINARY update (and PHP scripts should be uploaded in ASCII),

I decided to fix that issue by using base64 decode, then unserialize to reconstitute the $L language translation array.Also fixed an issue with global-map-genjs.php where station links wern't working properly on the popups

you can (with this update) now view global-map-lang-inc.php?sce=view to see the source, andglobal-map-lang-inc.php?sce=dump to see the print_r($L) contents of the $L master language array.

Four scripts changed to 4.01:global-map-lang-inc.phpglobal-map-settings.phpglobal-map-inc.phpglobal-map-genjs-inc.php

Available on the distribution script page or just the update attached.