Changeset 3774

Show
Ignore:
Timestamp:
05/04/11 12:40:38 (13 months ago)
Author:
sbrunner
Message:

Point visible on label ... (closes #623)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • print/trunk/src/main/java/org/mapfish/print/map/renderers/vector/PointRenderer.java

    r3758 r3774  
    9191        float offsetX = style.optFloat("graphicXOffset", -width / 2.0f); 
    9292        float offsetY = style.optFloat("graphicYOffset", -height / 2.0f); 
    93  
     93         
     94        // See Feature/Vector.js for more information about labels  
     95        String label = style.optString("label"); 
     96         
    9497        if (style.optString("externalGraphic") != null) { 
    9598            float opacity = style.optFloat("graphicOpacity", style.optFloat("fillOpacity", 1.0f)); 
     
    122125            dc.closePath(); 
    123126            dc.fillStroke(); 
    124  
    125                 } else { 
     127        } else if (label != null && label.length() > 0) { 
     128            // rendered by LabelRenderer 
     129        } else { 
    126130            PolygonRenderer.applyStyle(context, dc, style, state); 
    127131            dc.setGState(state);