Google Maps SDK iOS Satellite View

0 votes

How do I get the Satellite View on my iOS App? The code on the Google SDK Website doesn't work. I'm running the latest version of Xcode.

If I use the provided code on the Google SDK Website, I get this error:

Use of unresolved identifier 'kGMSTypeSatellite'.

The code I'm using from the Google Developer website is:

let camera = GMSCameraPosition.camera(withLatitude: -33.8683, longitude: 151.2086, zoom: 6)
let mapView = GMSMapView.map(withFrame: .zero, camera: camera)
mapView.mapType = kGMSTypeSatellite

Thanks.


 

Nov 30, 2022 in Mobile Development by gaurav
• 23,260 points
424 views

1 answer to this question.

0 votes
you are calling like this: mapView.mapType = kGMSTypeSatellite

You should call your mapView like

let mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera) mapView.mapType = GMSMapViewType.satellite.
answered Dec 15, 2022 by gaurav
• 23,260 points

Related Questions In Mobile Development

0 votes
0 answers
0 votes
0 answers

Facebook iOS 9 SDK login redirects to mbasic.facebook.com on Safari

I'm using the iOS 9 Facebook SDK to manage ...READ MORE

Nov 8, 2022 in Mobile Development by gaurav
• 23,260 points
1,318 views
0 votes
0 answers

iOS: transforming a view into cylindrical shape

With Quartz 2D we can transform our ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
789 views
0 votes
0 answers

How to fetch the width and height of a programatically added view in Swift/ iOS?

I have added a UIView and a ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
1,102 views
0 votes
1 answer

URL Scheme for iOS Home App

I think you could try doing it ...READ MORE

answered Nov 16, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
1,154 views
0 votes
1 answer

swift for windows? xcode on windows? ?

Hi, @Aminegac, If you’re a little more technically ...READ MORE

answered Dec 4, 2020 in Others by Nikita
1,772 views
0 votes
0 answers

How to access and read a file on a USB drive from IOS? (Connected via OTG cable to iPhone)

Can I access a text file on ...READ MORE

Nov 7, 2022 in IOS by Soham
• 9,710 points
576 views
0 votes
0 answers

Tab Bar Appearances before ios 13

I have upgraded to Xcode 13, I'm ...READ MORE

Nov 10, 2022 in Mobile Development by gaurav
• 23,260 points
447 views
0 votes
1 answer

Is there any library to implement twitter web view login dialog in iOS

Solution to your problem is to implement ...READ MORE

answered Dec 15, 2022 in Mobile Development by gaurav
• 23,260 points
430 views
0 votes
1 answer

Flutter project in iOS emulator takes forever to run, but its worked on Android emulator

Try flutter clean and flutter build ios ...READ MORE

answered Nov 18, 2022 in Mobile Development by gaurav
• 23,260 points
640 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP