Christian Heilmann

Posts Tagged ‘chrome’

Geo this! A Chrome plug-in to turn any web site into a map

Wednesday, July 21st, 2010

I’ve just started playing with Google Chrome Extensions heavily inspired by Mark Wubben’s talk at SWDC and of course the first thing I build is something to do with geographical locations.

Geo This! adds a little Earth icon to Chrome that, when pressed, analyses the page and shows a map of the locations it found in the text. If you highlight a part of the page first you only get the locations in this section. Click the screenshot below to go to the download site:

Geo This! A chrome plugin to turn any web site (or highlighted text) into a map

You can also see the extension in action in the following screencast:

Under the hood the extension is more or less a port of my addmap.js hack which in turn works most of its magic by using Yahoo Placemaker and YQL. The source code of the extension is available on GitHub.

Things that will come in future versions are:

  • Fixing the problem that Google Maps only numbers the first 10 markers on the static maps APIv1.0
  • More details on the found locationsv1.0
  • Ability to save the map and locations as an image
  • Better icons (anyone can paint me one?) – right now I am using one of the Project Icons by Mihaiciuc Bogdan and cruelly resized it in Skitch

What do you think?

Google Chrome getting navigator.geolocation

Thursday, March 4th, 2010

Just when I was writing an article about geolocation and bemoaned the fact that only Firefox on the Desktop supports the W3C geolocation API (Safari only as the mobile version) there is a new beta out that stepped up and filled that hole.

Following the link on ReadWriteWeb to the Chrome Developer Blog I downloaded the beta for Mac and tried it out.

The result, using the GeoPlanet Explorer shows that navigator.geolocation works:

chrome with geolocation

In order to enable geolocation on Chrome you need to start it from the Terminal – for example in OSX:

/Applications/Google Chrome.app/Contents/MacOS/Google Chrome—enable-geolocation

Good times ahead. Now ship it, Google!