cloudy cloudy

Author Topic: wxquake no map  (Read 240 times)

0 Members and 1 Guest are viewing this topic.

Offline tonyva

  • Posts: 1,122
  • Mangawhai Heads, Northland, New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 73.0.3683.103
    • Mangawhai Heads Weather
wxquake no map
« on: June 20, 2019, 07:59:49 PM »
HI

Cannot get the map to display, can someone spot the problem?

Thanks for help

http://www.mangawhaiweather.co.nz/wxquake.php
Thank You
Tony

Weather Dedicated 24/7 HP Dual Core 1.8 Ghz CPU, 2GB Ram

Offline saratogaWX

  • Global Moderator
  • Posts: 5,939
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Saratoga Weather
Re: wxquake no map
« Reply #1 on: June 20, 2019, 11:16:01 PM »
Looks like the quake-json.js script is for the old Google map, not the newer Leaflet/OpenStreetMap that the script is expecting.

Upload wxquake.php, quake-json.js and quake-json.css to your site replacing the old copies that were for Google.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline tonyva

  • Posts: 1,122
  • Mangawhai Heads, Northland, New Zealand
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 73.0.3683.103
    • Mangawhai Heads Weather
Re: wxquake no map
« Reply #2 on: June 21, 2019, 12:48:57 AM »
Thanks Ken, do I need to edit all 3 of those files?

Thank You
Tony

Weather Dedicated 24/7 HP Dual Core 1.8 Ghz CPU, 2GB Ram

Offline saratogaWX

  • Global Moderator
  • Posts: 5,939
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Saratoga Weather
Re: wxquake no map
« Reply #3 on: June 21, 2019, 02:32:51 PM »
No edits for quake-json.js or quake-json.css.  You may need to edit wxquake.php with your override settings.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline tonyva

  • Posts: 1,122
  • Mangawhai Heads, Northland, New Zealand
  • OS/Browser:
  • Android 8.1.0
  • Chrome 74.0.3729.157
    • Mangawhai Heads Weather
Re: wxquake no map
« Reply #4 on: June 22, 2019, 09:50:36 AM »
Thank you, have it sorted now.
Thank You
Tony

Weather Dedicated 24/7 HP Dual Core 1.8 Ghz CPU, 2GB Ram