Module: ProMotion::MapScreenModule::MapClassMethods
- Defined in:
- lib/ProMotion/map/map_screen_module.rb
Instance Method Summary collapse
- #get_map_style ⇒ Object
- #get_start_position ⇒ Object
- #get_start_position_params ⇒ Object
- #get_tap_to_add ⇒ Object
- #get_tap_to_add_params ⇒ Object
- #map_style(style) ⇒ Object
-
#start_position(params = {}) ⇒ Object
Start Position.
-
#tap_to_add(params = {}) ⇒ Object
Tap to drop pin.
Instance Method Details
#get_map_style ⇒ Object
433 434 435 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 433 def get_map_style @map_style_url ||= map_style(:light) end |
#get_start_position ⇒ Object
411 412 413 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 411 def get_start_position @start_position ||= false end |
#get_start_position_params ⇒ Object
407 408 409 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 407 def get_start_position_params @start_position_params ||= nil end |
#get_tap_to_add ⇒ Object
425 426 427 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 425 def get_tap_to_add @tap_to_add ||= false end |
#get_tap_to_add_params ⇒ Object
421 422 423 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 421 def get_tap_to_add_params @tap_to_add_params ||= nil end |
#map_style(style) ⇒ Object
429 430 431 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 429 def map_style(style) @map_style_url = NSURL.URLWithString("asset://styles/#{style}.json") end |
#start_position(params = {}) ⇒ Object
Start Position
402 403 404 405 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 402 def start_position(params={}) @start_position_params = params @start_position = true end |
#tap_to_add(params = {}) ⇒ Object
Tap to drop pin
416 417 418 419 |
# File 'lib/ProMotion/map/map_screen_module.rb', line 416 def tap_to_add(params={}) @tap_to_add_params = params @tap_to_add = true end |