Skip to content

Instantly share code, notes, and snippets.

@ziyang0621
Created November 23, 2015 19:49
Show Gist options
  • Save ziyang0621/d340e5ff73f131c32375 to your computer and use it in GitHub Desktop.
Save ziyang0621/d340e5ff73f131c32375 to your computer and use it in GitHub Desktop.
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