irstv/orbisgis — pull request #84 by agueganno (2012-07-27 13:30:38+00:00)
Title: MapContext auto extent

When removing a layer from the TOC, we will now check whether
there is still a layer with spatial data in the layer model. If there is
not (ie if we have only layer collections), the extents of the
MapControl and of the MapContext are set to null. This way, when adding
back a layer with spatial data, the extent of the map control is
modified to match the new bounding box of the layer model.

As for PR #83, this commit is open for discussion. Indeed, I change the
behaviour of listeners here, and consequently modify their side
effects... Moreover, I'm absolutely not able to determine what
consequences such a modification could have on the WMS project...

This PR is more than just a commit, it's a RFC. So please discuss about it before merging :-)