I'm porting some Leaflet map code to OpenGlobus and would like to have the camera zoom to a bounding box.
Leaflet code looks like this:
map.fitBounds([
[ data.boundingbox[0], data.boundingbox[2] ],
[ data.boundingbox[1], data.boundingbox[3] ]
]);
I suspect I need to use createBoundsByExtent() and then zoom to the bounds.
A short example would help me here. I tried to grep through the examples for that function.
Side note: I think the API docs would also be a bit better with a few code lines how the described function should / could be used. At least the most important functions.