Archive for the ‘Experimental’ Category

Smooth Zooming on a Google Maps with a SpaceNavigator

Tuesday, March 27th, 2007

A quicky: Nice little tweak of the 3Dconnexion control of a Google Map demo, thanks to an undocumented parameter it turns out it is possible to enable the Smooth (continuous) Zoom function from code, so now a new demo that has it enabled :)

As before IE only and required all sorts of hoop jumping to enable the activeX - but hopefully it worth it - still want to try the bookmarklet approach of loading this into any map.

3DConnexion on 2D Google Maps…

Thursday, March 22nd, 2007

Thanks to Frank for letting us know about the new SDK for the 3DConnexion devices, including the SpaceNavigator, I’ve been waiting for this for a while as wanted to try it for websites like Google Maps. Even nicer is the SDK includes a Javascript demo - so makes developing for Google Maps Easy!

Enough already, I want to see the Demo!

WARNING: Internet Explorer - and you might have to enable ActiveX controls to run. Do so at your own risk! I won’t intentionly do anything bad, but can’t promise that 3DConnexion won’t (but doubtful they would either) - Recommend you add Nearby to your trusted sites and then allow controls to run in the trusted zone.

Or just download the file to your local drive. (right click the above link and select Save As) and run it from a local file - didn’t have to jump thought the hoops to get it to run there!

Todo: The zooming isn’t as slick as it could be (possibly) and would be nicer to have more control of the speed. Also the silly (depending on your point of view!) warnings from IE7, which I wonder if there is a better way of loading the objects to make it more compatible.

Geograph Superlayer v2

Thursday, March 15th, 2007

Following the recent introduction of the Superlayer to explore Geograph Photographs in Google Earth, have updated so that transitions between ‘levels of detail’ are much nicer, as well as sporting new custom icons!

If you have previously downloaded it then you should get the update automatically - otherwise right click the superlayer in My Places and select ‘refresh’ to fetch the latest version. It seems sometimes GE doesn’t reload the styles - so if all you see is a mass of yellow push-pins, restart GE and it should then return to nice circles and blue camera icons.

Or just download it here:

Geograph Superlayer (Google Earth Version 4+ REQUIRED)

KML writing PHP Class

Tuesday, March 6th, 2007

For a little project working on for Geograph (btw Second Birthday today!), that will end up producing quite complex (and repetitive) KML, I decided to take the plunge and create my own abstraction class.

There are already a few of these about, but I wanted something with just enough abstraction so don’t need xml in the php code, but without too much complexity, or a whole new syntax to learn. So the final output is basically a generic XML creation system, but tailored to KML generation, with a number of convenience methods for common bits of KML, (like outputting the right headers). This don’t do any schema enforcement, and assumes a good working knowledge of kml.

Anyway as the code is already GPL, thought would mention it here in case it useful to someone else.

Get the base class here (from the Geograph SVN repository)

There is also another file here, which extends basic the functionality, this is more specific to Geograph, but could still be useful.

And a few demo’s/tests used during development:

Demo1 - (view running demo - by default displays the KML, option to open in GE)
Demo2 - (view running demo)

And for a real world use of the code (been in active use for a week now)

Eagle eyed viewers might notice it claims kml2.0 but then goes on to allow use of 2.1 features. Yes I know this is ‘bad’ but is with reason. I have found to my expense that using 2.1 as the version actually has a few undesirable effects, eg making the Document visible in My Places tree, can’t mix and match styleUrl and style (to have common style but with a unique icon), and a few other subtle things. Whereas GE seems to allow the new features in a 2.0 kml file, I guess this is the GE equivalent to quirks and strict mode. (disclaimer: it’s a while since I tested this, so might be old news, I really should run some real world tests to confirm this is still the case)

KML (& NetworkLink) for Nearby & any Geo-WordPress!

Saturday, February 17th, 2007

Following the addition of GeoRSS, earlier today while out photographing some PhotoSpots (TBA), I had an even better (possibly) idea, now that my WordPress stores Lat/Long, why not output KML too! The icing on the cake is you can also wrap it in a NetworkLink so that peoples Google Earth will auto update. (I am surprised couldn’t find this done already!)

And if that isn’t enough then I also release the code under GPL :) - note its the first time written anything for Wordpress, so might not be a tidy as could be!

Anyway see it in action on my series of PhotoSpots:

- as all these list the PhotoSpot category, each post includes a link to open the actual spot, so just click the world icon in the balloon to open :)

Download the Source or view the source: WordPress KML Generator and NetworkLink Wrapper

Installation: This is not a proper plugin, so just drop the .php files into the root of your WordPress folder and you should be done (but you can configure the icon to display if you wish by editing the wp-kml.php file)

Use: Normally you would only provide a link to the Wrapper - which in turn links to the feed itself, but the feed is useful like in the above example to plot directly on Google Maps. You can also specify a particular category to display like the above example or otherwise will include all geocoded posts.
Important: Requires the GeoPress extension be installed (to get geocode info)
Only tested on WordPress 2.0.1 - Works For Me - Your Mileage May Vary - no guarantee, implied or otherwise

Geograph Hectads in Google Earth v2

Tuesday, February 6th, 2007

Sometime last year I created a visualization of Geograph coverage as a series of 3D columns in Google Earth, well as that is now out of date, time to create updated versions:

: Geograph Points Per Hectad (*)
and Images Submitted Per Hectad (each around 200kb)

These are spectacular in themselves, but if you then create a series of these each timestamped with the dates of the images included, you can get an interactive animation…

So here is a version that downloads a monthly bargraph, since the project began, allowing full animation using the timeslider. Due to the size will only give the Animated Images Version which is the best anyway.

(due to the way of loading the data with nested network links will take time and patience with the timeslider to load them, all it seems to only really be possible by manually dragging the time-slider slowly across the timespan. )

Just need someone to create a fly though preview and upload to YouTube ;)

(* Hectad is a Geograph term for a 10km by 10km square)

Another PhotoSpot

Friday, January 26th, 2007


View at Geograph: SH7840 : Stone on Carnedd Iago
Another in the mini-series of Panoramic Images loaded into Google Earth, using DigitalUrban’s Panoramic Viewer tutorial.

This one is higher resolution than some of the others and ways in at 525kb,
but the extra resolution is useful to see the distant mountain ranges.

Anyway download it here: Google Earth Version

geotagged More Links for this location

Pen-y-Garn Mountain Panorama for GE

Tuesday, January 23rd, 2007

Following the nice spell of weather thought it an excellent opportunity to capture some images to create another Google Earth PhotoSpot (I still don’t think there is an official name for these).

Pen y Garn Panorama

Download the Google Earth Version (262kb KMZ file).

Used in the making of this: AutoPano*, Paint Shop Pro, DigitalUrban Panorama viewer for GE, (of course) Google Earth, a SpaceNavigator and Winzip 10#.

* (demo version, hence the watermark, first time used but really good, just got to make a usecase to someone to buy it for me ;)

# using Winzip to create the KMZ file seems to manage to squeeze some compression out of the jpg itself :)

Mountain Panorama in Google Earth

Monday, January 15th, 2007

DigitalUrban, has for a while being working on a Panorama Viewer for Google Earth, well to prove that it doesn’t just apply to Urban settings, I have created this panorama of the Top of Snowdon Google Earth File, the highest mountain in Wales (and England).

Really impressive! Just in case you don’t have a SpaceNavigator to really explore, have created a few views, just double click to move around. (idea from Google Earth Blog - except I used folders, so don’t have icons).

To really enjoy the feel of the mountains, I recommend setting your Terrain Exaggeration setting to about 2.0, although having said that the included Snapshot views are designed for when TE is set at 1, as that’s probably the most common.

I should note that I scaled up the model, to make it easier to use, so it does leave a rather large blob on top of the hill! This is also only a rectilinear panorama, rather than spherical, so it will be nice if DigitialUrban can work in support for such images.

geotagged More Links for this location

UK ZIPScribble Map

Saturday, January 6th, 2007

UK ZipScribble MapFollowing inspiration from the US ZIPScribble Map, I have created a UK version. Due to the resolution of the Postcodes in the UK it doesn’t work that well with full postcodes, but using sector postcodes seems to work well, click the thumbnail for a higher resolution version. (yes know some Postcode areas are missing!)

I have split and changed colour between postcode area (the first 1,2 letters), otherwise the sorting is done in alphanumeric order.

(via eagereyes.org blog)