653 |
Set the scale so that the map fits exactly into the window and |
Set the scale so that the map fits exactly into the window and |
654 |
center it in the window. |
center it in the window. |
655 |
""" |
""" |
656 |
bbox = self.map.ProjectedBoundingBox() |
if self.map is not None: |
657 |
if bbox is not None: |
bbox = self.map.ProjectedBoundingBox() |
658 |
self.FitRectToWindow(bbox) |
if bbox is not None: |
659 |
|
self.FitRectToWindow(bbox) |
660 |
|
|
661 |
def FitLayerToWindow(self, layer): |
def FitLayerToWindow(self, layer): |
662 |
"""Fit the given layer to the window. |
"""Fit the given layer to the window. |