I have found a solution. The problem was this: I created a new map, and then added a marker to this new map. Then I did nothing with the new card. So here is my solution:
@IBOutlet weak var subviewMap: GMSMapView!
func loadMap() {
let camera = GMSCameraPosition.camera(withLatitude: -33.86, longitude: 151.20, zoom: 10.0)
subviewMap.camera = camera
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: -33.86, longitude: 151.20)
marker.title = "Sydney"
marker.snippet = "Australia"
marker.map = subviewMap
}
And it works.
NOTE. Remember to mention your view as a GMSMapView class in IB
@O-mkar @mixth .
:]