Friday, 11 May 2007

Australian Weather Radar Vista Gadget v1.1

I've published an updated version of my Australian Weather Radar Gadget.

I had a request from Simon to enable the 256km images as he lives just out of range of his closest radar's 128km image.

A small number of the Bureau's radars also support a 64km image (Adelaide's Buckland Park being one), so I also added that option while I was at it.

When you set the image height, it also now resizes the "centering" image on the settings page, so it should now correspond to the same size as is shown in the sidebar.

Ideally, I'd re-write the re-centering so that it would use a drag/drop method like Google Maps etc, but my initial trials weren't successful. Either I'm not coding it right, or drag/drop is disabled for sidebar gadgets.

Despite comments on the gadget page asking for weather details, I'm not planning to add them to this gadget at this stage - I figure it's better to concentrate on one thing and try and do that well.

4 comments:

Ross King said...

Might want to check the disposing of the images. I've noticed that after a while, the 'Commit Size' memory for this grows to >1Gb on my machine.

David Gardiner said...

Thanks Ross - I'll have to investigate that.

It was something I tried to take account of, but it can be tricky to let the browser know that you're not referencing something any more.

Keith said...

I'm having the same problem as Ross.
Maybe the UpdateGadget function needs to use ImageCache.shift() instead of the delete ImageCache[0];?

David Gardiner said...

I've released an updated version with a revised list of radar sites from the BoM.

See this post for details.

btw, I did try you suggestion Keith but it didn't seem to help.

-dave