Here is the situation:
I have a Google Map in a second page. The project is not B4XPages but a simple one.
The first time I call page2.Show the Page_Resize event fires and in it I call the AddMap sub (as seen in Google Maps tutorial) but if I exit the current page and reenter the Page_Resize event does not fire and the Map is not added resulting in a blank panel.
I tried to move the AddMap sub call in page_Appear and after the page.Rootpanel.Loadlayout("....") but the panel the map is added in, is not resized properly (maybe yet).
How to overcome this problem (maybe force fire of Resize_Event everytime) ?
I have a Google Map in a second page. The project is not B4XPages but a simple one.
The first time I call page2.Show the Page_Resize event fires and in it I call the AddMap sub (as seen in Google Maps tutorial) but if I exit the current page and reenter the Page_Resize event does not fire and the Map is not added resulting in a blank panel.
I tried to move the AddMap sub call in page_Appear and after the page.Rootpanel.Loadlayout("....") but the panel the map is added in, is not resized properly (maybe yet).
How to overcome this problem (maybe force fire of Resize_Event everytime) ?