Firefox 3.5 does geolocation!

Firefox crop circle
Image by KonMan via Flickr

Since early beta release of Firefox 3.1 there is experimental support for the experimental W3C Geolocation API.

Now Doug Turner, one of the engineers who is behind the Geolocation support in Firefox, wrote a nice background story geolocation in Firefox 3.5 (hacks.mozilla.org). A very interesting read, and it turns out that geolocation is not only for mobile devices, but also available in regular Firefox versions, using wifi or IP address mapping.

Using Firefox 3.5 or another location aware browser? Give it a try by clicking the button below, a map with your current location will be loaded…

Note:

  • Firefox 3.5b4 has an annoying bug (#490046) which lets you get your location only once per run.
  • Privacy is an issue, Firefox asks for permission by showing a notification bar on top of the screen. Click “Tell them” to proceed…

    Click "tell Them"...

Map your location…

What the script does…

// call native geolocation API:
navigator.geolocation.getCurrentPosition(callback);

// callback initializes a google map with the geo data:
function callback(position) {
    ...
    var point = new GLatLng(position.coords.latitude,
         position.coords.longitude);
    ...
}

Google provides a similar Geolocation API implementation through Gears.

Got another browser where the API works? Please leave a comment!

Reblog this post [with Zemanta]

Popularity: 12%

Post to Twitter Tweet This Post to Delicious Delicious Post to Reddit Reddit This Post Post to StumbleUpon Stumble This Post

Tags: , , , , , ,
Comments (4)

Preparing for Firefox 3.1: add-on fixes

The generic globe logo used when Firefox is co...
Image via Wikipedia

It’s that time of the Firefox release cycle again: we’re at the verge of the 3.1 release, code named Shiretoko. The betas are getting pretty stable and usable for everyday use.

This usually means also that many of our tried and trusted add-ons stop working, because they have not been marked compatible with the latest Firefox version yet.

So for your convenience links to add-ons with incremented maxVersion number in their install manifest.

These are not changed in any other way than setting the maxVersion number – but you should’nt trust me and verify for yourself!

Reblog this post [with Zemanta]

Popularity: 10%

Post to Twitter Tweet This Post to Delicious Delicious Post to Reddit Reddit This Post Post to StumbleUpon Stumble This Post

Tags: , , , ,
Comments off

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.