Archive for January, 2008

Publish your KML via Google

Thursday, January 31st, 2008

Lately I have have been playing a lot with displaying KML files on various properties of Googles, and I thought it was about time I bookmarked the useful pages for my own reference – Firefox has them in the recent list now, but in 2 months time? Anyway in the end thought it would only take bit longer to collate them in a webpage, and make them dynamic links, so without further ado:

Useful links for publishing a KML via Google

ViewFlip for Google Earth

Thursday, January 24th, 2008

Remembering back to the good ol’ pre SpaceNavigator days, when Google Earth was stuck in ‘Earth Based’ mode, and I created ViewFrom, have created a new version that uses the <Camera> functionality to do it more accurately, but at the same wrapping it in a networklink for ease of use…

Google Earth LayerViewFlip (recent GE 4.2+ required)

… open opening this you should get an arrow in the middle of view. Click it and choose to either Flip! (swap position*) or Look Around (which gives you a folder of viewpoints to look out from the point of the arrow). So a sort of basic ‘User Based’ movements, which really (IMHO) should be part of part of the default GE installation – without needed addons.

*There is a few oddities with this – but mostly works. Also you will get a bunch of features in your Temporally Places – GE doesn’t seem to be able to load a KML that just changes the view (which there is no need to show in the Places there are no features)

Update: 25th Jan, Thanks to a suggestion from Frank Taylor the “lookaround” groups are now available at multiple altitudes, nothing new to download, its all done by magic. (let me know if other heights would be useful)

Export all MyMaps to Google Earth

Monday, January 7th, 2008

====================

Update, 2nd August 2008

Suddenly it seems that the KML export from My Maps no longer pages like it used to, basically making this script redundant – which was always the intention!

So if your file has under 1000 features, then just use the link ‘View in Google Earth’ to get all the data. If you want the
actual data you can change the ‘output=nl’ to ‘output=kml’ to get the KML data rather than a Network Link to it.

====================

Oh dear, I think I should stay away from the Google Maps Group, following a post (about saving directions to MyMaps) on there a few days ago, realised the KML export is paginated, but there doesnt seem to be a way to get at the following pages directly. It flummoxed me for a while until guessed at the params to get the additional pages, success.

Then a post on there today, made me realise others are coming against this problem, so in traditional hackers** style, here is a little utility to create a multi page network link wrapper…

Export all MyMaps to KML

** follow the link for the definition I mean

Update: 18th Apr, we now download the first page of the map, 1) to get the number of items per page, it seems the link itself is no longer reliable, and 2) it means we can grab the title automatically :)
(note the download is discarded so I dont keep a copy of the data itself)