mapbox / ios-sdk-examples

Live example code for the Mapbox iOS SDK
https://www.mapbox.com/ios-sdk/examples/
Other
95 stars 35 forks source link

Add InsetMapExample #397

Closed ZiZasaurus closed 4 years ago

ZiZasaurus commented 4 years ago

Added an iOS example similar to https://docs.mapbox.com/android/maps/examples/inset-map/

ZiZasaurus commented 4 years ago

Unable to set self.miniMapView.logoView.isHidden = YES

oddly enough, the miniMapview for swift is zoomed in closer than the one for obj-c and I don't know why...

Otherwise, all other changes were made!

captainbarbosa commented 4 years ago

Unable to set self.miniMapView.logoView.isHidden = YES

Oh, are you getting this error? No setter method 'setIsHidden:' for assignment to property

I think this is expected due to the way Objective-C is handling this boolean, check this out. So I think you want to use hidden instead of setHidden. In Swift, the same property is isHidden 🙂