Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Create KML files for tasty overlays on google earth and google maps
branch: master

This branch is 14 commits behind xaviershay:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README.textile
Rakefile
VERSION

README.textile

Kamel

gem install kamel --source http://gemcutter.org/

Create KML files for tasty overlays on google earth and google maps. Provides a cleaner interface than ruby_kml (which it uses internally).

Tested on ruby 1.8.6-339, 1.8.7-160 and 1.9.1-rc2

Usage

require 'rubygems'
require 'kamel'

overlay = Kamel::Overlay.new
overlay.name = 'Melbourne Train Stations'
[
  ["Flinders St",    -37.818078, 144.966811],
  ["Southern Cross", -37.818358, 144.952417],
].each do |name, lat, lng|
  overlay.placemark!(
    :name        => name,
    :description => "This is a train station",
    :location    => {:lng => lng, :lat => lat},
    :icon        => "http://www.uksa.org/images/about/train-icon.gif"
  )
end
puts overlay.to_kml

Author

Xavier Shay (http://rhnh.net)

Something went wrong with that request. Please try again.