North American Weather Network
September 09, 2010, 01:22:32 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NAWN forum, est. May 08
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Homepage updated with Google Map of stations  (Read 3023 times)
0 Members and 1 Guest are viewing this topic.
saratogaWX
Administrator
Sr. Member
*****
Offline Offline

Posts: 386



View Profile WWW
« on: June 12, 2008, 05:00:26 PM »

I've updated the homepage with a USA-centered Google map of current member stations.  Also added a Global Map view (same code, just different view starting position).

All networks that have latitude,longitude for their stations will show automatically on the map.

The station location information is updated hourly from all networks, and the station weather conditions (available by clicking on the marker on the map) are updated from the regional networks every 5 minutes.

Best regards,
Ken
Logged

Ken True/Saratoga, CA
saratoga-weather.org
Wunderground:  KCASARAT1
CWOP:  CW1792
Davis Vantage Pro Plus - FARS
Free Weather PHP Scripts/Templates
Tim Hanko
Regional Admin
Jr. Member
*****
Offline Offline

Posts: 51


View Profile WWW
« Reply #1 on: June 12, 2008, 06:06:02 PM »

Very impressive...  Grin
Logged
racenet
Newbie
*
Offline Offline

Posts: 7


Fly your flag proudly!


View Profile WWW
« Reply #2 on: June 12, 2008, 10:54:41 PM »

Ken,

It seems like my station is off by quite a bit, to say the least. What lat/long are you using for it?



Bob
Logged

www.nhweatherdata.com - NH Weather Data



The American Flag Store - Your one stop flag & flagpole shop!
Stillweather
Administrator
Full Member
*****
Offline Offline

Posts: 168



View Profile WWW
« Reply #3 on: June 12, 2008, 11:30:12 PM »

Bob,

That would be me, here is what I have for you....44.22401810,-71.84394073

Post the coordinates for your station and I'll change it for you!

Jack
Logged

racenet
Newbie
*
Offline Offline

Posts: 7


Fly your flag proudly!


View Profile WWW
« Reply #4 on: June 13, 2008, 07:54:57 AM »

That would be me, here is what I have for you....44.22401810,-71.84394073
Post the coordinates for your station and I'll change it for you!

Thanks Jack.

44.2119446
-71.9163895


Bob
Logged

www.nhweatherdata.com - NH Weather Data



The American Flag Store - Your one stop flag & flagpole shop!
Stillweather
Administrator
Full Member
*****
Offline Offline

Posts: 168



View Profile WWW
« Reply #5 on: June 13, 2008, 08:18:00 AM »

No problem Bob, it should be all set in the next update!

Regards,

Jack
Logged

Stillweather
Administrator
Full Member
*****
Offline Offline

Posts: 168



View Profile WWW
« Reply #6 on: June 13, 2008, 09:35:40 AM »

For my personal home page I made a little variation of the map! Just starting the map already zoomed in to the Northeast.....

http://stillweather.com/NAWN_Page.php

Jack
Logged

saratogaWX
Administrator
Sr. Member
*****
Offline Offline

Posts: 386



View Profile WWW
« Reply #7 on: June 13, 2008, 11:16:26 AM »

That's cool Jack!

You might want to include the recent fixes to the JavaScript for the map for IE7
Code:
      function createMarker(point,name,html,icon) {
        var marker = new GMarker(point, {icon:icon});
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html, {maxWidth:250});
        });
        return marker;
      }
  and
Code:
        var map = new GMap2(document.getElementById("map") ,
             { size: new GSize(620,480) } );
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
        map.setCenter(new GLatLng(44.71926117,-103.82946014), 3, G_NORMAL_MAP);
using your map.setCenter values instead.

Are you fetching a copy of the global-conditions.xml to your site?  If so, make it on the 4s/9s by cron as the file is created on the 3s/8s.

Best regards,
Ken
Logged

Ken True/Saratoga, CA
saratoga-weather.org
Wunderground:  KCASARAT1
CWOP:  CW1792
Davis Vantage Pro Plus - FARS
Free Weather PHP Scripts/Templates
Stillweather
Administrator
Full Member
*****
Offline Offline

Posts: 168



View Profile WWW
« Reply #8 on: June 13, 2008, 11:35:36 AM »

Quote
Are you fetching a copy of the global-conditions.xml to your site?  If so, make it on the 4s/9s by cron as the file is created on the 3s/8s

Doh! Forgot about the cron, e-rice won't do the cron. I may have to do a php script to get the updates?

Jack
Logged

saratogaWX
Administrator
Sr. Member
*****
Offline Offline

Posts: 386



View Profile WWW
« Reply #9 on: June 13, 2008, 12:06:38 PM »

I'll whip up a quick proxy script for it to get and cache a copy on the local webserver.

Ken
Logged

Ken True/Saratoga, CA
saratoga-weather.org
Wunderground:  KCASARAT1
CWOP:  CW1792
Davis Vantage Pro Plus - FARS
Free Weather PHP Scripts/Templates
Stillweather
Administrator
Full Member
*****
Offline Offline

Posts: 168



View Profile WWW
« Reply #10 on: June 13, 2008, 12:13:19 PM »

Quote
I'll whip up a quick proxy script for it to get and cache a copy on the local webserver.

Show off.... Grin

Thanks Ken!
Logged

ThorntonWeather
Regional Admin
Jr. Member
*****
Offline Offline

Posts: 53



View Profile WWW
« Reply #11 on: June 15, 2008, 06:45:47 AM »

Wow!  Very cool, gentlemen! 

Will there be a "how to" on how to incorporate this and a zoomed in version for those of us that need a bit of hand holding?  Smiley

Thanks! 

   Tony
Logged

saratogaWX
Administrator
Sr. Member
*****
Offline Offline

Posts: 386



View Profile WWW
« Reply #12 on: June 15, 2008, 10:53:06 AM »

Tony.. I'd just realized you weren't in the Regional Admins member group!  You should be able to see the instructions now.  Sorry!!

Best regards,
Ken
Logged

Ken True/Saratoga, CA
saratoga-weather.org
Wunderground:  KCASARAT1
CWOP:  CW1792
Davis Vantage Pro Plus - FARS
Free Weather PHP Scripts/Templates
SLOweather
Newbie
*
Offline Offline

Posts: 48


Notes from the outpost...


View Profile WWW
« Reply #13 on: June 15, 2008, 05:28:28 PM »

Tony.. I'd just realized you weren't in the Regional Admins member group!  You should be able to see the instructions now.  Sorry!!

Best regards,
Ken

Ah, this is the one I screwed up. Sorry Tony. when you joined, I approved you and then tried to promote you to a Regional Admin. I didn't pay attention to the profile I was in and demoted myself instead. After a week or 2, I figured out what I had done to myself and got Ken to change me back to a full admin, but just couldn't recall who it was that I didn't promote.
Logged

ThorntonWeather
Regional Admin
Jr. Member
*****
Offline Offline

Posts: 53



View Profile WWW
« Reply #14 on: June 15, 2008, 10:05:16 PM »

I guess I am the Rodney Dangerfield of the weather network admins - "No respect!"  Smiley   Just teasing of course!

Thank you for fixing that.  I figured they had to be somewhere but gave up looking! 

   Tony
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!