app/models/airport.rb
def to_marker
    {
      lat: latitude,
      lng: longitude,
      label: to_s
    }
  end
# Return object suitable for JSON export to the StimulusJS
# maps_controller
#
Return object suitable for JSON export to the StimulusJS
maps_controller
Return object suitable for JSON export to the StimulusJS maps_controller
def to_marker
    {
      lat: latitude,
      lng: longitude,
      label: to_s
    }
  end
def to_marker { lat : latitude , lng : longitude , label : to_s } end
Return object suitable for JSON export to the StimulusJS
maps_controller
Return object suitable for JSON export to the StimulusJS maps_controller