View Code? Open in Web Editor
NEW
This project forked from yoman07/ios-google-maps-scale-bar
iOS view for displaying scale bar for Google Maps iOS. Written in swift3
ios-google-maps-scale-bar's Introduction
Displaying scale bar on Google Maps iOS
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()
}
ios-google-maps-scale-bar's People
Contributors