
Have you ever wondered what would happen if a nuclear bomb goes off in your city?
With Google's Maps framework and a bit of Javascript, you can see the outcome.
And it does not look good.
(16April2008)
Now we can search for a location directly in our mapplet window. Just what we need, to find and nuke those hard to reach places.
The look of the mapplet has also been beautified substantially, unused and redundant code was taken off and new code was put in place.
The map window now includes the Zoom and Map Type controls provided by Google.
Just enter the address of that boss, colleague or loved one. If you can find it in Google Maps, you can nuke it.
Added a scale to the map, thanks to a comment received from tetris11. Also introduced code to start-up the map in random cities around the world.
This is a version of the Ground Zero Mapplet that we published previously. Read that article for more information on the sources for the calculations and other technical details.
The conversion to use the Maps API was fairly quick, but the following had to be updated or reworked:
Update 2.0 incorporates the LocalSearch Ajax API from Google. New logic and closures had to be put in the mapplet to support this change, but we think it was worth the effort.
You can click here to get the ZIP archive of the script.
You can also copy and paste the following to mashup the Ground Zero script into your own website or blog:
I designed the script to show the usage of Javascript functions on top of a Google Map. The radius of a nuclear explosion seemed entertaining and facetious enough for this demonstration.
The thermal effects of the blast are shown here because they are easily understood by users of all ages and cultural backgrounds.
It's really hard to describe the lethal radiation dose, in Sieverts, to a school kid...
In a real-life scenario, the area of thermal damage is affected by a multitude of factors; including the terrain, mountains, and height of the explosion. This script does not assume these factors.
The formulas used here are in the public domain, and were sourced from the websites of the Federation of American Scientists and from Wikipedia