Sha256: 98056c0ffba54f6d2c189eea6052a6bc6e899213fcbf443c966080b50a5530c8

Contents?: true

Size: 1.28 KB

Versions: 9

Compression:

Stored size: 1.28 KB

Contents

class TestMapScreen < PM::MapScreen

  attr_accessor :infinite_loop_points

  start_position latitude: 35.090648651123, longitude: -82.965972900391, radius: 4
  title "Gorges State Park, NC"

  def get_title
    self.title
  end

  def promotion_annotation_data
    @promotion_annotation_data
  end

  def annotation_data
    # Partial set of data from "GPS Map of Gorges State Park": http://www.hikewnc.info/maps/gorges-state-park/gps-map
    @data ||= [{
      longitude: -82.965972900391,
      latitude: 35.090648651123,
      title: "Rainbow Falls",
      subtitle: "Nantahala National Forest",
    },{
      longitude: -82.966093558105,
      latitude: 35.092520895652,
      title: "Turtleback Falls",
      subtitle: "Nantahala National Forest",
    },{
      longitude: -82.95916,
      latitude: 35.07496,
      title: "Windy Falls"
    },{
      longitude: -82.943031505056,
      latitude: 35.102516828489,
      title: "Upper Bearwallow Falls",
      subtitle: "Gorges State Park",
    },{
      longitude: -82.956244328014,
      latitude: 35.085548421623,
      title: "Stairway Falls",
      subtitle: "Gorges State Park",
    }]
  end

  def lookup_infinite_loop
    look_up_address address: "1 Infinite Loop" do |points, error|
      self.infinite_loop_points = points
    end
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ProMotion-1.1.2 spec/helpers/map_screen.rb
ProMotion-1.1.1 spec/helpers/map_screen.rb
ProMotion-1.1.0 spec/helpers/map_screen.rb
ProMotion-1.1.0.rc1 spec/helpers/map_screen.rb
ProMotion-1.0.4 spec/helpers/map_screen.rb
ProMotion-1.0.3 spec/helpers/map_screen.rb
ProMotion-1.0.2 spec/helpers/map_screen.rb
ProMotion-1.0.1 spec/helpers/map_screen.rb
ProMotion-1.0.0 spec/helpers/map_screen.rb