Skip to content

Instantly share code, notes, and snippets.

@bogardpd
Created September 30, 2019 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogardpd/eeabe5d52dc9f5be3b31725e926dfa70 to your computer and use it in GitHub Desktop.
Save bogardpd/eeabe5d52dc9f5be3b31725e926dfa70 to your computer and use it in GitHub Desktop.
/app/classes/map.rb KML Metadata and Style
#/app/classes/map.rb
def kml_styles
output = content_tag(:Style, id: "airportMarker") do
content_tag(:Icon) do
content_tag(:href, "http://maps.google.com/mapfiles/kml/shapes/placemark_circle.png")
end
end
output += content_tag(:Style, id: "flightPath") do
content_tag(:LineStyle) do
concat content_tag(:color, "ff0000ff")
concat content_tag(:width, "2")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment