I am trying to draw a container for a set of x features. Right now I am using the extent of those features with the union method to generate the container. but i want to fit the resulting extent to the map or find another alternative to do it.
Now:
![](/legacyfs/online/501848_1.png)
How should it be
![](/legacyfs/online/501849_2.png)
Thanks