Archive for the ‘KML’ Category

Letting your KML loose

Thursday, June 26th, 2008

I think I have mentioned this before, but have a page that helps share your KML file via various Google services.

Following a post on the Maps help group, realised could update it with some other ways to use the KML (even non Google!)

So view the latest page at

Publishing your KML for Google Earth, Google Maps and Beyond

suggestions for other links welcome in the comments!

Google Earth - the API

Friday, May 30th, 2008

I’ve been following the blogosphere re the recent introduction of the Google Earth API. Which is a slightly lightweight version of Google Earth packaged in a browser, but with a quite rich Javascript/KML hybrid scripting interface.

There has (IMHO) been some misconceptions about exactly what this is, the hype (and I partly fell into the same trap) seems to surround its bringing Google Earth (aka 3D) to the browser - which it certainly does, but as Ed Parsons notes:
“in that context it should become clear that the big announcement of the Google Earth plug-in, is more about adding a API to earth, than bringing 3D functionality to the browser.”
its not the biggest thing - its that it opens Google Earth to scripting!

And being browser based brings reasonably familiar, and cross platform, Javascript to the table, effectively obsoleting the unsupported COM API (and ActionScript?).

As many blogs note 3D in the browser is not that new, LiveMaps (or what ever it called now. virtual earth?) has had it for a while, not to mention WorldWind (java), and the myriad of other 3D globes.

(however the one area this is good on the web, is it allows much larger datasets to be displayed and intereacted with - in already existing Google Maps API mashups - with little work)

Google Earth in the Browser

Wednesday, May 28th, 2008

Google has just announced a new Google Earth API - which allows embedding and fully functional Google Earth in just about any webpage. Even is easily intergratable with Google Maps API mashups - with very little extra code. (takes a number of seconds for that news to sink in!)

Be sure to checkout the samples, (particularly the milktruck demo!), I’ve also started trying it out with a few demos of my own

…Windows only btw…

Expect A LOT MORE from this very flexible looking API - the JS interface can quickly interact with objects (API is based around KML) and gets pretty good control of interface options.

Update: mentioned on gearthblog.com which is a good introduction about what this is and what its not!

Update2: and to show it can basically be added to a ‘real world’ Gmaps mashup, in a few lines of code, see here

HowTo: Copy/Move features between My Maps (GoogleMaps)

Friday, May 23rd, 2008

Google Maps doesn’t include a method to copy/move features between maps, however as you can import and export features using KML files you can easily use these features to archive the job.

I’ve moved the meat of this post to a Thread on the Google Maps Group - better for Google to be hosting it.

Howto: Alternative to paging on MyMaps (GoogleMaps)

Friday, May 23rd, 2008

Introduction

In order to keep the map working at reasonable speed Google Maps needs to limit the available features visible at once, quite simply the more features shown the slower the map gets.

For MyMaps the features are split into pages, so that a reasonable amount of data is shown on one page - effectivly enough that will work at a reasonable speed. This normally results in between 60-200 features at once, but sometimes that is not enough.

However Google Maps uses a different limited method when displaying KML files, a regional geographical culling based method. A certain number of features are shown, to give a reasonable overview, but then as you zoom in more features become visible. This often results in more results being visible, but importantly doesn’t impose the arbitrary pages, so its often more friendly on the user, as can just zoom in on an area rather than flick though pages to find their area.

I’ve moved the meat of this post to a thread on the Google Maps Group - let Google host it!

Howto: Save Directions to a MyMap (GoogleMaps)

Friday, May 23rd, 2008

Google Maps doesn’t include a method to save ‘Driving Directions’ easily into MyMaps. Fortunately they do include KML import/export for most features, so can export the route as KML then reimport it into a My Map.

I’ve moved the meat of this post to a Thread on the Google Maps Group, better for Google to be hosting it :)

GE4.3 Compass Star

Saturday, April 26th, 2008

Compass While playing with the new navigation in Google Earth 4.3, noticed its not always easy to get your bearings (bad pun), also been wanting to play in PSP today, so set to do something about both. The result? A ScreenOverlay showing a compass star on the navigation control.

Google Earth Overlay . GE Compass Star (without numbers)

Note: I do also have a network link that shows the more exact bearing as a placemark label.

(part inspired by)

Updated to add: This has inspired a similar compass that rotates, nice work Gerardo64!

Bah, Spam!

Monday, March 24th, 2008

(appologies all, this post is simply a rant, and unfortunatly will almost certainly not reach the people its intended for!)

I just noticed that despite only having a very soft launch via this blog, already gokml.net* has attacted submission bots, which seems to have the sole purpose of seeking out submission forms and sending in their masters details, I guess in the hope of getting that little bit of search engine juice.

I guess need to roll out a captcha and/or email confirmation, or maybe even akismet.com?

(as a sidenote, I have a really old form that was intended for people to submit sites for a geoindex, in the nearby location search, I dont think its even linked anymore but it still gets hundreds of submissions daily, I’ve kept it open basically as a honey pot, but unsure what to do with the data, suggestions on a postcard…)

(* a ‘tinyurl’ site for creating network-links for KML content - must also get round to finishing it off…)

Where in the world are people looking? part 2

Saturday, March 1st, 2008

Following part 1 yesterday, have now plotted some maps per individual service.

Flash Earth Layer

Conclusions

  1. Google Earth does request a link for the initial view on startup - that point in the Atlantic.
  2. I guess North American installs have two slightly different default placemarks; has it changed, or maybe Canada gets a different one?
  3. But that doesnt explain the lines from there - people must have their links set to periodically refresh?
  4. Germany likes FlashEarth (or rather people like looking at Germany with FlashEarth link enabled)
  5. Many people leave the links open even when not in use - e.g. the British Isles links show worldwide usage, notably over Russia.
  6. MGRS notably has high usage in two areas.
  7. The Far east likes to know what direction they facing.

Update: In a total forehead slapping momont realised these unprojected whole world images, are exactly what is used in GroundOverlays, so the the pages now include links to view the higher resolution images directly in Google Earth, duh!

Example: View In Google Earth (don’t forget to try adjusting the tranparency slider!) [Update, to fix broken link, sorry!]

goKML.net : short (network) links for KML

Wednesday, February 27th, 2008

For a project wanted to create a small script to make generation of network link wrappers to KML content easy, but then I thought could have it create ’short’ urls, ala tinyurl.com, to make reuse easy. But then thought if going to that trouble might as well make it a full blown mini application, so I give you

goKML.net :: Short Links to KML content

I think it turned out pretty well (esp for just an evenings hacking) - it even has an element of ‘design’ - which is saying something!goKML.net : short (network) links for KML

So if you want to create a network link wrapper with the minimum of fuss, and might enjoy having it as a short url, then give it a go.

Of course there are still a few things that could be done, but will leave these for another day…

  • Auto discover the ‘title’
  • Intelligence for ‘My Map’s - eg support multiple pages, and maybe some other KML types.
  • Actually make the admin page useful - display stats (they are stored already) , and edit the link
  • A public gallery of popular/new etc links - maybe even some sort of search - esp if we can do rudimentary indexing of the content (when fetch the title)
  • Support for named links eg could choose gokml.net/fredsparty.kml
  • Complete the support for the various network link options - particulaly making it easier to select the appropriate settings.
  • Maybe even support for forwarding the link by email (and/or sending the admin link to yourself)
  • Any thing you can think of :) - let me know!