Does anyone know how to load a map inside a custom-sized space instead of full screen? I would like to have space at the top and bottom of the screen to put buttons and a banner ad.
I’m pretty sure you don’t want to load a map for that task. Just make your own display group, make it the highest display group above the map, get the contentBounds of screen and add buttons/widgets to that display group, that way its always on the certain spot of the screen on top of the map. The widgets library should do what you want.
Got it working! I took your advice and set up some containers and also found that mte has a setScreenBounds function that allows you to change the values of the screen’s edges.
I’m pretty sure you don’t want to load a map for that task. Just make your own display group, make it the highest display group above the map, get the contentBounds of screen and add buttons/widgets to that display group, that way its always on the certain spot of the screen on top of the map. The widgets library should do what you want.
Got it working! I took your advice and set up some containers and also found that mte has a setScreenBounds function that allows you to change the values of the screen’s edges.