I want to use google maps and places on my IOS application. Is it even possible? and if so, can I customize the icons inside google maps?
Asked
Active
Viewed 147 times
-4
-
https://developers.google.com/maps/documentation/ios-sdk/intro – Scriptable Oct 24 '19 at 14:22
-
Yes you can customize the markers' images as per https://developers.google.com/maps/documentation/ios-sdk/marker#customize_the_marker_image – evan Oct 27 '19 at 08:51
-
As for Places SDK for iOS, the documentation can be found here https://developers.google.com/places/ios-sdk/intro – evan Oct 27 '19 at 08:52
1 Answers
-1
You should read and follow this link for integration : https://developers.google.com/maps/documentation/ios-sdk/start
And for custom marker follow the link : google maps iOS SDK: custom icons to be used as markers
its something like this :
let marker = GMSMarker()
// I have taken a pin image which is a custom image
let markerImage = UIImage(named: "mapMarker")!.withRenderingMode(.alwaysTemplate)
//creating a marker view
let markerView = UIImageView(image: markerImage)
//changing the tint color of the image
markerView.tintColor = UIColor.red
marker.position = CLLocationCoordinate2D(latitude: 28.7041, longitude: 77.1025)
marker.iconView = markerView
marker.title = "New Delhi"
marker.snippet = "India"
marker.map = mapView
//comment this line if you don't wish to put a callout bubble
mapView.selectedMarker = marker

Dhaval Raval
- 594
- 2
- 7