Replies: 2 comments 3 replies
-
You're right - in Mesa, a map is setup during initialization and remains fixed afterwards. In Mesa-Geo, there's an auto zoom feature if no specific view & zoom level are specified: #102. However, this is done only once. More specifically, it is controlled by the mesa-geo/mesa_geo/visualization/templates/js/MapModule.js Lines 35 to 47 in bea0f32 If it is not too much trouble, you may modify the source code and install your modified version, to remove this @rht Does this sound good for a new feature? We can have another option for Edit: Or, we can check if the bounds have changed at each step to decide whether to auto-zoom or not. Then we don't need users to set any options. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for these helpful suggestions and the quick reply! It may be too much trouble in this particular case, although for future extensions of our model we definitely should do that. I'll try it out, for sure, when I find the time! |
Beta Was this translation helpful? Give feedback.
-
I would like to display agents on a world map but only need a zoomed in part of it initially. Ideally, this map part would zoom out if necessary - ie, when an agent steps out of the bounds of the original map part (à la cartopy).
As far as I understand, this is not possible with mesa out of the box, but does mesa-geo have a feature for that?
Thanks in advance for any help!
Beta Was this translation helpful? Give feedback.
All reactions