The NWR-radios-inc.php has the complete list of all the (current) map providers .. I guess I'd just forgotten to update the similar commented-out settings in radios.php and wxradio.php.
I'd coded a hierarchy of the settings for the NWR-radios-inc.php:
1) the local settings inside wxradio.php or radios.php are the initial ones.
2) If wxradio.php is loaded inside a saratoga template, then the following overrides can be made:
if(isset($SITE['WXRstartup'])) { $startup = $SITE['WXRstartup']; }
if(isset($SITE['WXRmapprovider'])) { $mapProvider = $SITE['WXRmapprovider']; }
if(isset($SITE['WXRprovider'])) { $streamprovider = $SITE['WXRprovider']; }
if(isset($SITE['WXRautoplay'])) { $autoplaystartup = $SITE['WXRautoplay']; }
if(isset($SITE['WXRbackground'])) { $backgroundColor = $SITE['WXRbackground']; }
if(isset($SITE['mapboxAPIkey'])) { $mapboxAPIkey = $SITE['mapboxAPIkey'];}
The currently supported maps are shown in the $mapTileProviders = array() with the 'key' as the map provider and the 'name'=> the map name displayed in the selection box.
$mapTileProviders = array(
'OSM' => array(
'name' => 'Street',
'URL' =>'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
'attrib' => '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, Points © 2012 LINZ',
'maxzoom' => 18
),
'Wikimedia' => array(
'name' => 'Street2',
'URL' =>'https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png',
'attrib' => '<a href="https://wikimediafoundation.org/wiki/Maps_Terms_of_Use">Wikimedia</a>',
'maxzoom' => 18
),
'Esri_WorldTopoMap' => array(
'name' => 'Terrain',
'URL' => 'https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}',
'attrib' => 'Tiles © <a href="https://www.esri.com/en-us/home" title="Sources: Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community">Esri</a>',
'maxzoom' => 18
),
'Terrain' => array(
'name' => 'Terrain2',
'URL' =>'http://{s}.tile.stamen.com/terrain/{z}/{x}/{y}.jpg',
'attrib' => '<a href="https://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> <a href="https://stamen.com">Stamen.com</a> | Data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
'maxzoom' => 14
),
'NatGeo' => array(
'name' => 'NatGeo',
'URL' =>'https://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/tile/{z}/{y}/{x}',
'attrib' => 'Tiles © <a href="https://www.esri.com/en-us/home" title="Sources: Esri, DeLorme, NAVTEQ, TomTom, Intermap, iPC, USGS, FAO, NPS, NRCAN, GeoBase, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), and the GIS User Community">Esri NatGeo</a>',
'maxzoom' => 16
),
'OpenTopo' => array(
'name' => 'Topo',
'URL' =>'https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png',
'attrib' => ' © <a href="https://opentopomap.org/">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>) | Data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
'maxzoom' => 15
),
'MapboxTer' => array(
'name' => 'Terrain3',
'URL' =>'https://api.mapbox.com/styles/v1/mapbox/outdoors-v10/tiles/256/{z}/{x}/{y}?access_token='.
$mapboxAPIkey,
'attrib' => '© <a href="https://mapbox.com">MapBox.com</a> | Data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
'maxzoom' => 18
),
'MapboxSat' => array(
'name' => 'Satellite',
'URL' =>'https://api.mapbox.com/styles/v1/mapbox/satellite-streets-v10/tiles/256/{z}/{x}/{y}?access_token='.
$mapboxAPIkey,
'attrib' => '© <a href="https://mapbox.com">MapBox.com</a> | Data © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',
'maxzoom' => 18
),
);
For (2) above, the $mapProvider='Terrain' isn't a valid choice (no 'Terrain' entry in the $mapProvider array) so the script defaults to using 'OSM' with if(isset($mapTileProviders[$mapProvider]) ) {
$sct = "// using \$mapProvider = '$mapProvider' as default map tiles. \n";
} else {
$sct = "// invalid \$mapProvider = '$mapProvider' - using OSM for map tiles instead. \n";
$mapProvider = 'OSM';
}
and 'OSM' will show 'Street' in the legend.
Guess I should add the valid choices in the comments in radios.php and wxradio.php so folks can just uncomment a line for their choice.