Created
September 30, 2019 01:06
-
-
Save bogardpd/eeabe5d52dc9f5be3b31725e926dfa70 to your computer and use it in GitHub Desktop.
/app/classes/map.rb KML Metadata and Style
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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