
I have a script that generates a current U.S. map with national temperatures on it.
The script has an option for saving the map to a folder on your web site (I run a CRON job every 15 minutes to update the map).
The base map is from Google Maps and I mess with the contrast a bit to bring out the color in the map.
The cities and weather stations are specified in an array:
$cities = [
[ 'name' => 'Topeka', 'station' => 'KTOP' ],
[ 'name' => 'St Louis', 'station' => 'KSTL' ],
[ 'name' => 'Los Angeles', 'station' => 'KLAX' ],
[ 'name' => 'San Francisco', 'station' => 'KSFO' ],
[ 'name' => 'Las Vegas', 'station' => 'KLAS' ],
[ 'name' => 'Seattle', 'station' => 'KBFI' ],
[ 'name' => 'Tulsa', 'station' => 'KTUL' ],
[ 'name' => 'El Paso', 'station' => 'KELP' ],
[ 'name' => 'Dallas', 'station' => 'KDFW' ],
[ 'name' => 'Houston', 'station' => 'KHOU' ],
[ 'name' => 'Salt Lake City', 'station' => 'KSLC' ],
[ 'name' => 'Salem', 'station' => 'KSLE' ],
[ 'name' => 'Miami', 'station' => 'KMIA' ],
[ 'name' => 'Denver', 'station' => 'KBKF' ],
[ 'name' => 'Detroit', 'station' => 'KDET' ],
[ 'name' => 'Chicago', 'station' => 'KORD' ],
[ 'name' => 'Omaha', 'station' => 'KOMA' ],
[ 'name' => 'Billings', 'station' => 'KBIL' ],
[ 'name' => 'Atlanta', 'station' => 'KATL' ],
[ 'name' => 'Minneapolis', 'station' => 'KMSP' ],
[ 'name' => 'New York City', 'station' => 'KNYC' ],
[ 'name' => 'Washington, DC', 'station' => 'KIAD' ],
[ 'name' => 'Bismarck', 'station' => 'KBIS' ],
[ 'name' => 'Bangor', 'station' => 'KBGR' ],
[ 'name' => 'Raleigh', 'station' => 'KRDU' ],
[ 'name' => 'Amarillo', 'station' => 'KAMA' ],
[ 'name' => 'Nashville', 'station' => 'KBNA' ],
[ 'name' => 'Jacksonville', 'station' => 'KJAX' ],
[ 'name' => 'Boise', 'station' => 'KBOI' ],
];
You can replace the logo file with your own. The only changes you HAVE to make are to the $image_folder and $font_folder variables. Point them at where you store your image base, logo files and font file.
http://weather.wibwradio.com/usa-temps-map.zipLet me know if you have any questions, suggestions or comments.