520 |
# Render title |
# Render title |
521 |
dc.DrawText(l.Title(), posx, posy) |
dc.DrawText(l.Title(), posx, posy) |
522 |
posy+=stepy |
posy+=stepy |
523 |
# Render classification |
if l.HasClassification(): |
524 |
clazz = l.GetClassification() |
# Render classification |
525 |
shapeType = l.ShapeType() |
clazz = l.GetClassification() |
526 |
for g in clazz: |
shapeType = l.ShapeType() |
527 |
if g.IsVisible(): |
for g in clazz: |
528 |
previewer.Draw(dc, |
if g.IsVisible(): |
529 |
wxRect(posx+dx, posy, iconwidth, iconheight), |
previewer.Draw(dc, |
530 |
g.GetProperties(), shapeType) |
wxRect(posx+dx, posy, |
531 |
dc.DrawText(g.GetDisplayText(), |
iconwidth, iconheight), |
532 |
posx+2*dx+iconwidth, posy) |
g.GetProperties(), shapeType) |
533 |
posy+=stepy |
dc.DrawText(g.GetDisplayText(), |
534 |
|
posx+2*dx+iconwidth, posy) |
535 |
|
posy+=stepy |
536 |
|
|
537 |
def render_scalebar(self, map): |
def render_scalebar(self, map): |
538 |
"""Render the scalebar.""" |
"""Render the scalebar.""" |