The USGS is converting to all HTTPS access in March, 2017 so you’ll need this update to keep your earthquake display working after they do the conversion.
I’ve also made it easier to specify the $googleAPI key – use it in the page including quake-json.php instead of changing quake-json.php to add the key.
Saratoga template users should specify $SITE[‘googleAPI’] = ‘your-api-key’; in Settings.php
Standalone users: download from the script page.
Saratoga template users: use the update tool with a query for Base-* Plugin-* 14-Feb-2017 for the update.
Mine is very stand-alone, do I need the whole zip package or just the quakes.php? I must have a very old version, looks like a lot of variable names have changed :oops:
If your version is old, I’d recommend downloading the quake-json.zip file and replace quakes.php (standalone page), quake-json.php and quake-json.js scripts. Put your customizations in the quakes.php script.
I had the same issue… Did you check these 2 setting in the json script? I didnt have to use a new API key.
$setDistanceRadius = 150; // same units as first unit in $setDistanceDisplay
$maxDistance = 150; // quake must be within this number of miles/kilometers to location
I imagine it’s true for any google maps implementation. I assumed the key was good for the whole domain, but I guess you need a different key for each subdomain :?