Changeset 3754 for print

Show
Ignore:
Timestamp:
03/14/11 12:30:00 (15 months ago)
Author:
jeichar
Message:

fixed transparency of image output and made test config and spec more advanced

Location:
print/trunk
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • print/trunk/build.gradle

    r3747 r3754  
    3131           'ch.thus:pvalsecc:0.9.2', 'xalan:xalan:2.7.0', 'log4j:log4j:1.2.14', 'com.vividsolutions:jts:1.8', 
    3232           "org.mapfish.geo:mapfish-geo-lib:$version", 'commons-httpclient:commons-httpclient:3.1',       
    33            'org.geotools:gt-epsg-hsql:2.6.5','org.apache.pdfbox:pdfbox:1.5.0', 'javax.media:jai_core:1.1.3',  
     33           'org.geotools:gt-epsg-hsql:2.6.5','org.apache.pdfbox:pdfbox:1.5.0-MAPFISH-1.2', 'javax.media:jai_core:1.1.3', 
    3434           'javax.media:jai_imageio:1.1', 'javax.media:jai_codec:1.1.3') 
    3535  compile ('org.apache.xmlgraphics:batik-transcoder:1.7'){ 
  • print/trunk/gradlew

    r3536 r3754  
    88 
    99# Uncomment those lines to set JVM options. GRADLE_OPTS and JAVA_OPTS can be used together. 
    10 # GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" 
     10GRADLE_OPTS="$GRADLE_OPTS -Xmx512m" 
    1111# JAVA_OPTS="$JAVA_OPTS -Xmx512m" 
    1212 
  • print/trunk/samples/config.yaml

    r3751 r3754  
    7373          spacingAfter: 100 
    7474          align: center 
    75           url: 'file://${configDir}/logo-camptocamp.png' 
     75          url: 'file://${configDir}/logo-camptocamp-transparent.png' 
    7676        - !text 
    7777          font: Helvetica 
  • print/trunk/samples/spec.json

    r3647 r3754  
    55    dpi: 254, 
    66    units: 'degrees', 
    7     layers: [ 
    8         { 
     7    outputFormat: 'png', 
     8    layers: [{ 
    99            type: 'WMS', 
    1010            layers: ['basic'], 
     
    1717            baseURL: 'http://www.camptocamp.org/cgi-bin/mapserv_c2corg', 
    1818            format: 'image/png' 
    19         } 
     19        },    { 
     20                "opacity": 0.5, 
     21                "customParams": {}, 
     22                "type": "Vector", 
     23                "styles": { 
     24                    "1": { 
     25                        "fillColor": "red", 
     26                        "strokeColor": "red", 
     27                        "fillOpacity": 0.4000000000000001, 
     28                        "hoverFillColor": "white", 
     29                        "hoverFillOpacity": 0.8000000000000002, 
     30                        "strokeOpacity": 1, 
     31                        "strokeWidth": 0.5, 
     32                        "strokeLinecap": "round", 
     33                        "strokeDashstyle": "solid", 
     34                        "hoverStrokeColor": "red", 
     35                        "hoverStrokeOpacity": 1.0, 
     36                        "hoverStrokeWidth": 0.2, 
     37                        "pointRadius": 6, 
     38                        "hoverPointRadius": 1, 
     39                        "hoverPointUnit": "%", 
     40                        "pointerEvents": "visiblePainted", 
     41                        "cursor": "inherit" 
     42                    } 
     43                }, 
     44                "styleProperty": "_style", 
     45                "geoJson": { 
     46                    "type": "FeatureCollection", 
     47                    "features": [{ 
     48                        "type": "Feature", 
     49                        "id": "OpenLayers.Feature.Vector_243", 
     50                        "properties": { 
     51                            "_style": 1, 
     52                            "name": "", 
     53                            "description": "", 
     54                            "ext-comp-1048": "default" 
     55                        }, 
     56                        "geometry": { 
     57                            "type": "Polygon", 
     58                            "coordinates": [[[5, 45], [5, 47], [7, 47], [7, 45], [5, 45]]] 
     59                        } 
     60                    }] 
     61                }, 
     62                "name": "Cosmetic" 
     63            } 
    2064    ], 
    2165    pages: [