peacemaker Expert Licensed User Longtime User May 4, 2017 #1 HI, All How to adjust the map size ? If to place some info list under it - the map height must be adjusted not by the designer, but by code.
HI, All How to adjust the map size ? If to place some info list under it - the map height must be adjusted not by the designer, but by code.
DonManfred Expert Licensed User Longtime User May 4, 2017 #2 Create a Layout with just the MapFragment. Must be done with designer. Create a Panel of the desired size by code. Load the MapFragment-Layout to this panel. Upvote 0
Create a Layout with just the MapFragment. Must be done with designer. Create a Panel of the desired size by code. Load the MapFragment-Layout to this panel.
peacemaker Expert Licensed User Longtime User May 4, 2017 #3 Thanks, helped ! But why the Mapfragment is without dimension setters ? Upvote 0
eurojam Well-Known Member Licensed User Longtime User May 4, 2017 #5 put the mapfraqment in a layout, setting the anchors as desired, then load the layout into a panel. If you want to resize the the map during runtime, resize the panel and then reload the layout again Code: Panel1.GetView(0).SetLayout(..) see https://www.b4x.com/android/forum/threads/googlemap-animate-mapfraqment.76895/ and https://www.b4x.com/android/forum/threads/googlemap-panel-resize.70544/#post-447922 Upvote 0
put the mapfraqment in a layout, setting the anchors as desired, then load the layout into a panel. If you want to resize the the map during runtime, resize the panel and then reload the layout again Code: Panel1.GetView(0).SetLayout(..) see https://www.b4x.com/android/forum/threads/googlemap-animate-mapfraqment.76895/ and https://www.b4x.com/android/forum/threads/googlemap-panel-resize.70544/#post-447922