ios - GMSMapView compass button not visible -


i using google maps ask ios app using swift. have added map(gmsmapview) in story board , trying compass button

mapview.settings.compassbutton = true 

but unable see compass button.

if navigation bar visible, compass button behind it. make appear below navigation bar need add padding top side of map view.

objective-c

uiedgeinsets mapinsets = uiedgeinsetsmake(80.0, 0.0, 0.0, 0.0); gmsmapview *mapview; mapview.padding = mapinsets; 

swift

let mapinsets = uiedgeinsets(top: 80.0, left: 0.0, bottom: 0.0, right: 0.0) mapview.padding = mapinsets 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -