Created
November 23, 2015 19:49
-
-
Save ziyang0621/d340e5ff73f131c32375 to your computer and use it in GitHub Desktop.
This file contains 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 ViewController: UIViewController { | |
@IBOutlet weak var testView: UIView! | |
var locationManager = CLLocationManager(); | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
super.viewDidLoad() | |
let panoView = GMSPanoramaView(frame: CGRectZero) | |
panoView.delegate = self | |
self.view = panoView | |
panoView.moveNearCoordinate(CLLocationCoordinate2DMake(0, 150.312)) | |
} | |
} | |
extension ViewController: GMSPanoramaViewDelegate { | |
func panoramaView(view: GMSPanoramaView!, error: NSError!, onMoveNearCoordinate coordinate: CLLocationCoordinate2D) { | |
print("\(coordinate.latitude) \(coordinate.longitude) not available") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment