434 |
determine the shape at the position, run the label dialog and |
determine the shape at the position, run the label dialog and |
435 |
unless the user cancels the dialog, add a label. |
unless the user cancels the dialog, add a label. |
436 |
""" |
""" |
|
label_layer = self.map.LabelLayer() |
|
437 |
layer, shape_index = self.find_shape_at(x, y, select_labels = 1) |
layer, shape_index = self.find_shape_at(x, y, select_labels = 1) |
438 |
if layer is None and shape_index is not None: |
if layer is None and shape_index is not None: |
439 |
ViewPort.LabelShapeAt(self, x, y) |
ViewPort.LabelShapeAt(self, x, y) |
442 |
layer.ShapeStore().Table(), |
layer.ShapeStore().Table(), |
443 |
shape_index) |
shape_index) |
444 |
ViewPort.LabelShapeAt(self, x, y, text) |
ViewPort.LabelShapeAt(self, x, y, text) |
445 |
|
|
446 |
|
|