Wednesday, July 27, 2005
Space Shuttle, and other maps
More worthwhile mapping mashups and resources:
- track the Space Shuttle and ISS
- Global Coordinate presents all manner of worldwide data on Google Maps, and also offers a Landsat view as well
- UK weather reports
- zoom to a rectangular area
- USAPhotoMaps - an offline program that makes the most of data it downloads from TerraServer
Tuesday, July 26, 2005
Improving the UI of mapping sites using CSS
When run in Mozilla/Firefox, MSN Virtual Earth does not have quite the same visual appearance as it does in Internet Explorer - specifically the banner header holding the search controls at the top of the screen is solid in Mozilla, but is semi-transparent on IE.
I realized that this could be fixed by a simple change to the CSS. Whilst I was at it, I went further to see what else I could improve in the Virtual Earth UI, using just CSS. The changes I put in my CSS file for Virtual Earth are:
Update: 5th Oct 2005: There is a new layout to Google Maps that means this CSS file no longer works. I'll have to see if I can find time to fix it for the new layout.
Update: 6/10/05 I've updated the CSS file now.
I realized that this could be fixed by a simple change to the CSS. Whilst I was at it, I went further to see what else I could improve in the Virtual Earth UI, using just CSS. The changes I put in my CSS file for Virtual Earth are:
- make the banner semi-transparent, as it is in IE
- move the menu up to the top of the banner
- remove the "about" menu item, which adds nothing one you have read it once
- move the scale to the corner of the map, and give it a solid background, so that it can actually be read
- shrink the size of the zoom control slightly, and make it semi-transparent to obscure less of the map
- move the compass rose, so it's not so in the way, and make it semi-transparent (but less so when you actually mouse over it to use it)
- fix the size of the "x" box in the corner of info windows
- increase the font size for permalinks, to make them easier to read and click on
- hide the what and where help text hints
- Stop the search result titles SHOUTING
- enlarge the map to take up the whole of the browser window
- place the results window in front of the map, in a semi-transparent form, which becomes more solid when the mouse moves over it to use it
- reduce the size of the search form, which is similarly semi-transparent
- remove the logo and banner which were taking up too much space
- remove the text labels that just duplicate icons
Update: 5th Oct 2005: There is a new layout to Google Maps that means this CSS file no longer works. I'll have to see if I can find time to fix it for the new layout.
Update: 6/10/05 I've updated the CSS file now.
Sunday, July 24, 2005
VirtualEarth from MSN
MSN have launched Virtual Earth - their attempt to catch up with Google Maps.
Having tried it out for a few hours, I think they've generally missed. There are a few areas where they exceed the capabilities of Google Maps, but these are outweighed by those where they fall short.
The capability that is likely to get the most press is the fact that they show the USGS colour data at full resolution (ie at the resolution that Google Earth uses, not the reduced resolution that Google Maps currently displays). However, outside of the USGS colour areas (around 30+ US cities), they only show the black and white USGS data - which is a very poor substitute for the sometimes lower resolution, but coloured photos that Google uses. Google also has detailed coverage for many cities throughout the world, whereas Virtual Earth is limited to detailed data in the USA only.
A possible other reason to prefer VirtualEarth is it has a larger part of the screen given over to the map, since it does not reserve space alongside the map for search results.
The list of areas they fall short of Google Maps is longer:
Having tried it out for a few hours, I think they've generally missed. There are a few areas where they exceed the capabilities of Google Maps, but these are outweighed by those where they fall short.
The capability that is likely to get the most press is the fact that they show the USGS colour data at full resolution (ie at the resolution that Google Earth uses, not the reduced resolution that Google Maps currently displays). However, outside of the USGS colour areas (around 30+ US cities), they only show the black and white USGS data - which is a very poor substitute for the sometimes lower resolution, but coloured photos that Google uses. Google also has detailed coverage for many cities throughout the world, whereas Virtual Earth is limited to detailed data in the USA only.
A possible other reason to prefer VirtualEarth is it has a larger part of the screen given over to the map, since it does not reserve space alongside the map for search results.
The list of areas they fall short of Google Maps is longer:
- This is an extreme US centric launch - there is no attempt to provide photo data yet for the rest of the world, beyond the 1 pixel per km NASA Blue Marble image, and the "road map" view does not show any road data outside of the USA (showing just limited place name data).
- Keyboard navigation is harder with Virtual Earth - no use of pageUp/pageDown to move the map in big chunks (but I do like the fact that the scroll wheel can be used to zoom)
- Virtual Earth uses large, opaque, and ugly controls for zooming and scrolling
- Bringing up help places a pseudo popup window in front of the map - so you can't view help and the map at the same time
- Unfortunately the Virtual earth view of the world is flat - you cannot scroll west from the USA, but must scroll east to get to anywhere else
- The distance scale shows miles only - no metric measurements
- It is not possible to scroll around the whole world at a particular zoom level - when the data runs out (generally when you leave the USA) the system simply locks you from scrolling anymore in that direction, rather than showing you the data at whatever resolution it may have
Saturday, July 23, 2005
Hybrid mode for Google Maps
Google Maps has gained a hybrid mode, which overlays mapping data on top of the satellite images. To achieve this, they have had to rescale their photographic images, which were not to the same scale as the maps. This appears to have been done by resampling the existing images, so for example the Google copyright watermarks have been stretched along with the rest of the images.
In most cases the maps and the images line up well - though as always people take great pleasure in finding the exceptions. A discussion on Slashdot found the following examples:
In most cases the maps and the images line up well - though as always people take great pleasure in finding the exceptions. A discussion on Slashdot found the following examples:
- just minor misalignment in Toronto, Canada
- misalignment at Camden Town, London
- the creation of imaginary roads (there is no E 42nd St), and E 43rd St does not exist beyond the crossroads - its a drainage ditch!
- the satellite image is more recent than the map in Ottowa, Canada - the road has been repositioned south of the building
- the map data is more recent than the satellite in Westminster, Co
Monday, July 18, 2005
Update to Yahoo Maps API to allow POSTING
Whilst I'm unconvinced of the general usefulness of the Yahoo maps API (since the maps cannot be integrated or otherwise embedded into other pages), they have just made them potentially a bit more useful.
The original API took a URL that supplied the RSS feed describing the map points. This URL therefore had to be accessible to Yahoo's servers - thus ruling out use on intranet sites, and on many sites where the data could not easily be written to a file.
The changed API allows the data to be supplied directly via the API, in the form of an HTTP POST. Details in a new POST section on the API documentation page.
The original API took a URL that supplied the RSS feed describing the map points. This URL therefore had to be accessible to Yahoo's servers - thus ruling out use on intranet sites, and on many sites where the data could not easily be written to a file.
The changed API allows the data to be supplied directly via the API, in the form of an HTTP POST. Details in a new POST section on the API documentation page.
Google Maps showing a scale
Google Maps have started to show a scale on their maps, in the position previously used by the Google logo.
This scale does not always appear on the maps, but does seem to be there whenever you go to a map via a "link to this page" URL. The scale is provided with the tooltip "Scale at the center of the map" and gives a horizontal scale. As you scroll the map, the scale changes dynamically as the area in the center of the map changes, which dramatically illustrates the fact that the scale is not constant over the whole of the visible map. No attempt is made to provide a scale in the vertical direction, which is not normally the same as the horizontal one.
The scale is shown for both the maps view, and the satellite view, and gives both imperial and metric units (with the unit changing as appropriate to keen the numbers managable).
I've not been able to determine if there is a way for applications using the Google Maps API to get to show this scale.
Update: Its not been documented yet, but the API now supports the Scale control via a command such as:
This scale does not always appear on the maps, but does seem to be there whenever you go to a map via a "link to this page" URL. The scale is provided with the tooltip "Scale at the center of the map" and gives a horizontal scale. As you scroll the map, the scale changes dynamically as the area in the center of the map changes, which dramatically illustrates the fact that the scale is not constant over the whole of the visible map. No attempt is made to provide a scale in the vertical direction, which is not normally the same as the horizontal one.
The scale is shown for both the maps view, and the satellite view, and gives both imperial and metric units (with the unit changing as appropriate to keen the numbers managable).
I've not been able to determine if there is a way for applications using the Google Maps API to get to show this scale.
Update: Its not been documented yet, but the API now supports the Scale control via a command such as:
map.addControl(new GScaleControl());
Friday, July 15, 2005
Nuclear blasts on Google Maps
Eric Meyer has produced an interesting, if slightly bugged application of Google Maps with his HYDESim maps which are an indicator of structural damage to buildings from a nuclear blast.
The maps show rings of overpressure caused by the blast - which is unfortunately where they go wrong. Google Maps do not have the same scale both vertically and horizontally, so these rings should really be ellipses. The error is not too bad in much of the mid-USA, but moving further North or South the errors mount up, and switching to satellite mode the difference can be even greater. For example at -96.24298095703125, 63.87451171875 on the satellite image the ratio between the vertical and horizontal scales is roughly 23:10.
The maps show rings of overpressure caused by the blast - which is unfortunately where they go wrong. Google Maps do not have the same scale both vertically and horizontally, so these rings should really be ellipses. The error is not too bad in much of the mid-USA, but moving further North or South the errors mount up, and switching to satellite mode the difference can be even greater. For example at -96.24298095703125, 63.87451171875 on the satellite image the ratio between the vertical and horizontal scales is roughly 23:10.
Thursday, July 14, 2005
Pixsy - the random image search engine
Pixsy is a new image search engine that "searches blogs, mobile blogs ("moblogs"), social networks, and other sites that have unique content" in order to find images that most search engines miss.
That's all very well, but unfortunately viewing any of the results seems to be a lottery. Like most engines, it does not show all the results on one page, but offers Next and Previous links. The URL of a results page is currently http://www.pixsy.com/Search.aspx?next=true - note that it has a parameter of next, that steps you through the groups of results each time you get to that page. Thus the standard operation of "view an image then press back to get back to the results page" does not take you to the same results page, but instead advances you to a new set of results.
Even on a single page of results, the details links are always numbered from zero for the first visible image, (so the first image on the first page and that on the second page etc all have the same URL), so it seems to be random when you view the detailed image result as to whether you will get the image you thought you would, or rather some other image that shares the same URL on a different page of results.
That's all very well, but unfortunately viewing any of the results seems to be a lottery. Like most engines, it does not show all the results on one page, but offers Next and Previous links. The URL of a results page is currently http://www.pixsy.com/Search.aspx?next=true - note that it has a parameter of next, that steps you through the groups of results each time you get to that page. Thus the standard operation of "view an image then press back to get back to the results page" does not take you to the same results page, but instead advances you to a new set of results.
Even on a single page of results, the details links are always numbered from zero for the first visible image, (so the first image on the first page and that on the second page etc all have the same URL), so it seems to be random when you view the detailed image result as to whether you will get the image you thought you would, or rather some other image that shares the same URL on a different page of results.
Wednesday, July 06, 2005
Weather maps of the USA
It may not last long at this URL (which is just a development one), but Weather Maps is presenting Weather Underground information on Google Maps.
The markers for each point artfully show all of temperature, wind strength and direction, and weather observation, and the popup info window adds humidity and a temperature chart.
There are also links to webcams so you can see the realtime weather, and data can be downloaded for display in Google Earth.
Update: More weather presented on maps at:
The markers for each point artfully show all of temperature, wind strength and direction, and weather observation, and the popup info window adds humidity and a temperature chart.
There are also links to webcams so you can see the realtime weather, and data can be downloaded for display in Google Earth.
Update: More weather presented on maps at:
Tuesday, July 05, 2005
Roundup of more mapping highlights
Google Maps
- GMaps Pedometer is another implementation of measuring the length of a path you click on the map
- Mobile GMaps is free software to display Google Maps imagery on Java J2ME-enabled mobile phones
- Google Maps Transparencies overlays a map directly onto the centre of a larger satellite image - which does show that the two do not line up exactly
- UPS tracking with Google Maps
- Scavengeroogle - a scavenger hunt to track down images seen at Google Maps
- Network Link - an explanation of the feed subscription and location based URL format used in Google Earth
- GoogleGlobe serves up Google Earth placemarks for user entered locations
- Chicago real estate in Google Earth format - its about a 500K file, updated daily, so they really should be using the compressed .kmz format which would cut the size to 100K
- GeoData from the German Wikipedia - covering about 2600 locations worldwide that have been geotagged in the German version of Wikipedia
Monday, July 04, 2005
Official Google toolbar for Firefox on its way
Fritz Schneider has contacted the Googlebar developers to let them know that Google are expecting to release an official Google Toolbar for Firefox this week.
It will work with Firefox 1.0+, on Win2k/XP, MacOS X 10.2, and Linux 8.0+. With the exception of the popup blocker (which Firefox already has), it will match the features of the latest IE toolbar. Thus we can expect spellcheck, autolink functionality, and probably a PageRank display.
For a while now, if you visited the Google toolbar page using Firefox, it suggested that you install the independently developed Googlebar thus:
It will work with Firefox 1.0+, on Win2k/XP, MacOS X 10.2, and Linux 8.0+. With the exception of the popup blocker (which Firefox already has), it will match the features of the latest IE toolbar. Thus we can expect spellcheck, autolink functionality, and probably a PageRank display.
For a while now, if you visited the Google toolbar page using Firefox, it suggested that you install the independently developed Googlebar thus:
Googlebar: We encourage Firefox, Mozilla, and Netscape® 7.x users to install the open-source Googlebar, developed and supported by Google fans.
Saturday, July 02, 2005
Google Earth feeds and files
Google Earth is the downloadable application from Google that uses the same satellite data as Google Maps, but which literally takes it into another dimension. The images can be scrolled as with Google Maps, but can also be viewed from an angle and rotated - and since the data is augmented with altitude data, some of these views can be most spectacular.
[The downloads page has been temporarily disabled, whilst Google increase capacity of their servers]. The free entry level version of the application runs on Windows, but the enterprise version runs on Linux.
Data for overlaying the images with points of interest is stored in KML files. Google have put together documentation for the KML file format so that other people can produce these files.
You can search via Google for kml files (and their compressed kmz equivalent), though beware that these will also bring up some non-google earth kml files.
[The downloads page has been temporarily disabled, whilst Google increase capacity of their servers]. The free entry level version of the application runs on Windows, but the enterprise version runs on Linux.
Data for overlaying the images with points of interest is stored in KML files. Google have put together documentation for the KML file format so that other people can produce these files.
You can search via Google for kml files (and their compressed kmz equivalent), though beware that these will also bring up some non-google earth kml files.
- search for kml files (a claimed 5430 files at the time of writing this post, but after removing duplicates only 86 remain)
- search for kmz files (a claimed 73 results at the time of writing this post)
- USGS Earthquakes
- Latest 50 geotagged flickr photos, updated every 30 mins
- Closest 50 geotagged flickr photos within 100km to the point you're looking at.
- Closest 50 geotagged del.icio.us pages within 2000km to the point you're looking at.
- An overlay to update the image of a Chicago airport
- Tourism in Monaco
script.aculo.us - visual effects, and drag-and-drop framework
script.aculo.us is a javascript framework which provides (currently) a number of visual effects, and drag-and-drop support. It's available for use under an MIT style licence.
There's an example puzzle, to illustrate the drag-and-drop, that although very simple is quite entertaining.
There's an example puzzle, to illustrate the drag-and-drop, that although very simple is quite entertaining.
More Google Maps API applications
Google Maps API applications are coming thick and fast now. A few that caught my eye:
- amateur radio position tracking - illustrating the use of locked together side by side map and satellite images
- Boston subway map - artfully uses different coloured polylines to show the different subway lines
- Puget Sound Dive Maps - nothing particularly unique about this, just a nice example of how individual pages can make use of the maps
Lengthfinder - Google Maps based app for measuring distances
LengthFinder is a Google Maps based page that allows you to interactively plot a path on a map, and display the length of that route.
The developer is Australian, so the map (or actually satellite image) comes up centred on Sydney, and distances are given in Km only. There is also a conversion to walking/cycling time - I guess they walk slow in the Australian heat since the conversion assumes just 4Km per hour walking pace!
The developer is Australian, so the map (or actually satellite image) comes up centred on Sydney, and distances are given in Km only. There is also a conversion to walking/cycling time - I guess they walk slow in the Australian heat since the conversion assumes just 4Km per hour walking pace!
Friday, July 01, 2005
Another maps web service
Plotted.com is another site which aims to simplify using the Google Maps API, by simply serving up a map as a web service.
It also supports geocoding of locations, and is designed to be placed in a iframe.
It also supports geocoding of locations, and is designed to be placed in a iframe.
Greasemonkey script to add Google Map to any page
Greasemap is a Greasemonkey script which adds a Google map to a page if it finds any geocodable addresses or other geotags on the page.
The map is placed in an iframe served up from Vinq.com - which gets around the restrictions that the Google maps key registration mechanism imposes.
Currently recognised locations are of the form
All geocoding of addresses is done on the server. The server is thus a useful webservice in its own right. Take a look at:
http://www.vinq.com/greasemap.html?locs=801+spring+St,Seattle,WA
- it produces a twin map layout, showing a wide angle view, and a close-up.
The map is placed in an iframe served up from Vinq.com - which gets around the restrictions that the Google maps key registration mechanism imposes.
Currently recognised locations are of the form
- 123 foobar street, anytown, MN 95125
- <meta name="geo.position" content="41.328,-110.292">
- <meta name="ICBM" content="41.328,-110.292">
All geocoding of addresses is done on the server. The server is thus a useful webservice in its own right. Take a look at:
http://www.vinq.com/greasemap.html?locs=801+spring+St,Seattle,WA
- it produces a twin map layout, showing a wide angle view, and a close-up.