I have made 2 on-screen widgets that are located on the right side of the map window. When a user resizes their browser window or uses a smaller screen computer, these widgets shift offscreen or move towards the middle of the map window.
How do I make sure they stay where they are at, in the same location no matter how the window is resized or the size of the computer screen?
Here is my code snippet from the config.json:
{
"position": {
"left": 1150,
"bottom": 500,
"relativeTo": "map"
},
I have made 2 on-screen widgets that are located on the right side of the map window. When a user resizes their browser window or uses a smaller screen computer, these widgets shift offscreen or move towards the middle of the map window.