// labs

KML Loader

with 4 comments

After spending so much time invested in loading and editing kml we've created a section dedicated to our kml libraries. Over the coming weeks I'll be expanding this into a reference for the library. Feel free to contact us with comments or queries.



Examples


Simple KML Loader

You can use this code to simply load and display a kml file on your map.

  1. var loader:SimpleKmlLoader = new SimpleKmlLoader( google_map_instance, true );
  2. loader.load( _file );


Interactions

See this post for information on how to add interactions to your kml objects.


Kml Loader Basics

See this post on the basic implementation of the loader. This requires more work than the SimpleKmlLoader but is the base class if you don't need the automatic map addition.



Get the source

We'll be moving to a code hosted solution somewhere soon but for the moment you can get the latest version from our public svn:

svn co http://svn.distriqt.com/public/trunk/gmaps

4 Responses to 'KML Loader'

Subscribe to comments with RSS or TrackBack to 'KML Loader'.

  1. maybe i’m not so smart… but how can i download the kml loader library, i’ve tried with this http://svn.distriqt.com/public/trunk/gmaps/... but i can’t get the download file, until i’m in the *.as files… is there a way to download this in a *.rar or *.zip?

    Daniel

    19 Aug 11 at 07:05

  2. Hey Daniel

    The library files are part of our SVN repo, so you need to use an SVN client to download it, i.e. “svn checkout http://svn.distriqt.com/public/trunk/gmaps gmaps/” in Terminal if you’re on a Mac, otherwise use something like TortoiseSVN on Windows.

    If you can’t get it working just shoot us an email (sk at distriqt.com) and we can send you a zip or something.

    Cheers
    S

    Shane Korin

    19 Aug 11 at 08:39

  3. Hi Shane

    Thanks for your answer, i got the files! but i’m trying to load a kml file and i have this error: 1020: Method marked override must override another method (line 154 in overlay/overlaygroup.as). I’m probably doing something wrong what can that be?

    Daniel

    19 Aug 11 at 22:27

  4. The latest version of the library is designed to work with flash v 10
    or higher. However it will work with version 9 however you’ll just
    need to remove the text “override” on line 154 of the OverlayGroup.as
    file.

    Sorry the library is still in development so we appreciate your
    patience. Let us know if you have any other problems.

    I’ll make sure we fix this for the next release.

    Michael Archbold

    25 Aug 11 at 17:52

Leave a Reply