/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/map.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/map.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1387 by jonathan, Fri May 30 06:28:02 2003 UTC revision 1388 by jonathan, Thu Jul 10 14:53:15 2003 UTC
# Line 60  class Map(TitledObject, Modifiable): Line 60  class Map(TitledObject, Modifiable):
60          self.label_layer.Destroy()          self.label_layer.Destroy()
61    
62      def AddLayer(self, layer):      def AddLayer(self, layer):
63          """Append layer to the map on top opf all."""          """Append layer to the map on top of all."""
64          self.layers.append(layer)          self.layers.append(layer)
65          self.subscribe_layer_channels(layer)          self.subscribe_layer_channels(layer)
66          self.changed(MAP_LAYERS_CHANGED, self)          self.changed(MAP_LAYERS_CHANGED, self)
# Line 218  class Map(TitledObject, Modifiable): Line 218  class Map(TitledObject, Modifiable):
218          """Set the projection of the map.          """Set the projection of the map.
219    
220          Issue a MAP_PROJECTION_CHANGED message."""          Issue a MAP_PROJECTION_CHANGED message."""
221            old_proj = self.projection
222          self.projection = projection          self.projection = projection
223          self.changed(MAP_PROJECTION_CHANGED, self)          self.changed(MAP_PROJECTION_CHANGED, self, old_proj)
224    
225      def forward(self, *args):      def forward(self, *args):
226          """Reissue events"""          """Reissue events"""

Legend:
Removed from v.1387  
changed lines
  Added in v.1388

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26