You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the weirdest issue I've seen with PM::MapScreen and how it interacts with the nav bar.
class Home < PM::Screen
title 'Map Screen'
nav_bar true
def on_load
map_view = MyMapScreen.new
rmq.add_subview(map_view.view).style do |st|
st.frame = {t: 100, w: device.width, h: 200}
end
end
end
In the MyMapScreen the annotations have been added and the pins setup correctly. However they don't display!
When I remove the nav_bar true, hey presto the pins appear!
I've tried all sorts of ways to fix this, manually adding a nav_bar:
UINavigationController.alloc.initWithRootViewController(self)
nav = self.navigationController.navigationBar
nav.frame = CGRectMake(0, 0, device.width, 70)
Or
navigation = UINavigationBar.alloc.initWithFrame(CGRectMake(0, 0, device.width, 70)) Anyway I've ended up going with the following and ditching PM Maps.
Hi @jamonholmgren - sadly not. I had a really good go figuring out the loading order for the nav_bar to see if it was masking something. However time got the better of me.
This is the weirdest issue I've seen with PM::MapScreen and how it interacts with the nav bar.
In the MyMapScreen the annotations have been added and the pins setup correctly. However they don't display!
When I remove the nav_bar true, hey presto the pins appear!
I've tried all sorts of ways to fix this, manually adding a nav_bar:
Or
navigation = UINavigationBar.alloc.initWithFrame(CGRectMake(0, 0, device.width, 70))
Anyway I've ended up going with the following and ditching PM Maps.I'm not sure if anyone has had this issue, or similar, if so pls let me know, it would be nice to use the awesome map library.
The text was updated successfully, but these errors were encountered: