Sha256: 12161fda822753b1f824f6f4d7ce1c6be6094cc3d1d8260509337e999d3f7560
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
## # Wrappers for MapKit # module MapKit ## # Class for dealing with MKMapView map type constants # class MapType ## # Convert from MKMapView to MapView # # * *Args* : # - +map_type+ -> Map type as MKMapView constant # # * *Returns* : # - map type as symbol # def self.mkmap_to_rmap(map_type) case map_type when MKMapTypeStandard :standard when MKMapTypeSatellite :satellite when MKMapTypeHybrid :hybrid else raise "Unknown map type: #{map_type.inspect}" end end ## # Convert from MapView to MKMapView # # * *Args* : # - +map_type+ -> Map type as symbol # # * *Returns* : # - Map type as MKMapView constant # def self.rmap_to_mkmap(map_type) case map_type when :standard MKMapTypeStandard when :satellite MKMapTypeSatellite when :hybrid MKMapTypeHybrid else raise "Unknown map type: #{map_type.inspect}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
map-kit-wrapper-0.0.5 | lib/map-kit-wrapper/map_type.rb |