How to use ?
- You can add scaleBar via xib or storyboard.
- Set mapView: scaleBarView.mapView = self.mapView .
- Add delegate for your GMSMapView and add
func mapView(_ mapView: GMSMapView, didChange position: GMSCameraPosition) {
self.scaleBarView.setNeedsLayout() }