7 |
|
|
8 |
__version__ = "$Revision$" |
__version__ = "$Revision$" |
9 |
|
|
10 |
#from messages import MAP_LAYERS_CHANGED, MAP_PROJECTION_CHANGED, \ |
from messages import MAP_LAYERS_CHANGED, MAP_PROJECTION_CHANGED, \ |
11 |
#CHANGED, LAYER_PROJECTION_CHANGED, LAYER_LEGEND_CHANGED, \ |
CHANGED, LAYER_PROJECTION_CHANGED, LAYER_LEGEND_CHANGED, \ |
12 |
#LAYER_VISIBILITY_CHANGED |
LAYER_VISIBILITY_CHANGED, LAYER_CHANGED, MAP_STACKING_CHANGED, \ |
13 |
|
MAP_LAYERS_ADDED, MAP_LAYERS_REMOVED |
|
from messages import * |
|
14 |
|
|
15 |
from Thuban import _ |
from Thuban import _ |
16 |
|
|
19 |
from label import LabelLayer |
from label import LabelLayer |
20 |
|
|
21 |
|
|
|
|
|
22 |
class Map(TitledObject, Modifiable): |
class Map(TitledObject, Modifiable): |
23 |
|
|
24 |
"""Represent a map. A map is simply a list of layers. |
"""Represent a map. A map is simply a list of layers. |
184 |
bbox = self.projection.ForwardBBox(bbox) |
bbox = self.projection.ForwardBBox(bbox) |
185 |
return bbox |
return bbox |
186 |
|
|
187 |
|
def GetProjection(self): |
188 |
|
return self.projection |
189 |
|
|
190 |
def SetProjection(self, projection): |
def SetProjection(self, projection): |
191 |
"""Set the projection of the map. |
"""Set the projection of the map. |
192 |
|
|