Created
October 17, 2013 20:11
-
-
Save Omnipresent/7031435 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MyMapScreen < PM::MapScreen | |
title "My Map" | |
start_position latitude: 35.090648651123, longitude: -82.965972900391, radius: 4 | |
def on_appear | |
update_annotation_data | |
end | |
def annotation_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", | |
your_param: "CustomWhatever" | |
}, { | |
longitude: -82.965972900391, | |
latitude: 35.090648651123, | |
title: "Rainbow Falls", | |
subtitle: "Nantahala National Forest", | |
}] | |
end | |
end |
This file contains hidden or 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
~/motionapps/promotion-tutorial $ ruby --version | |
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin12.2.0] | |
~/motionapps/promotion-tutorial $ motion --version | |
2.9 | |
~/motionapps/promotion-tutorial $ rm Gemfile.lock | |
~/motionapps/promotion-tutorial $ bundle | |
Fetching gem metadata from https://rubygems.org/.. | |
Resolving dependencies... | |
Using rake (10.1.0) | |
Using ProMotion (1.0.4) | |
Using bundler (1.3.5) | |
Your bundle is complete! | |
Use `bundle show [gemname]` to see where a bundled gem is installed. | |
~/motionapps/promotion-tutorial $ rake clean | |
Delete ./build | |
~/motionapps/promotion-tutorial $ rake | |
Build ./build/iPhoneSimulator-6.1-Development | |
Compile ./app/screens/about_pro_motion_screen.rb | |
Compile ./app/screens/articles_screen.rb | |
Compile ./app/screens/home_screen.rb | |
Compile ./app/screens/my_map_screen.rb | |
Compile ./app/app_delegate.rb | |
Create ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.app | |
Link ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.app/promotion-tutorial | |
Create ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.app/Info.plist | |
Create ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.app/PkgInfo | |
Copy ./resources/[email protected] | |
Create ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.dSYM | |
Simulate ./build/iPhoneSimulator-6.1-Development/promotion-tutorial.app | |
(main)> ProMotion::Logger: [ERROR] You must add MapKit and CoreLocation to your project's frameworks in the Rakefile. | |
2013-10-17 16:11:25.843 promotion-tutorial[23536:c07] 52:in `set_start_position:': uninitialized constant ProMotion::MapScreenModule::CLLocationCoordinate2D (NameError) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment