Skip to content

Instantly share code, notes, and snippets.

@bogardpd

bogardpd/map.rb

Created Sep 30, 2019
Embed
What would you like to do?
/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
You can’t perform that action at this time.