[Mapbender-commits] r4768 - branches/print_dev/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Oct 2 11:40:22 EDT 2009


Author: mschulz
Date: 2009-10-02 11:40:21 -0400 (Fri, 02 Oct 2009)
New Revision: 4768

Added:
   branches/print_dev/http/print/mapbender_template2.json
   branches/print_dev/http/print/mapbender_template2.pdf
Log:
yet another template and configuration example

Added: branches/print_dev/http/print/mapbender_template2.json
===================================================================
--- branches/print_dev/http/print/mapbender_template2.json	                        (rev 0)
+++ branches/print_dev/http/print/mapbender_template2.json	2009-10-02 15:40:21 UTC (rev 4768)
@@ -0,0 +1,149 @@
+{
+    "type" : "templatePDF",
+    "orientation" : "P",
+    "units" : "mm",
+    "format" : "a4",
+    "controls" : [
+    	{
+    		"id" : "title",
+    		"label" : "Titel",
+    		"type" : "text",
+    		"size" : 20,
+    		"pageElementsLink" : {
+    			"titel" : "value"
+    		}
+    	},
+    	{
+    		"id" : "dpi",
+    		"label" : "DPI",
+    		"type" : "select",
+    		"size" : 20,
+    		"pageElementsLink" : {
+    			"karte" : "res_dpi"
+    		},
+    		"options" : [
+    			{
+    			"value" : "56",
+    			"label" : "niedrig (56)"
+    			},{
+    			"value" : "72",
+    			"label" : "normal (72)"
+    			},{
+    			"value" : "144",
+    			"label" : "hoch (dpi)"
+    			}
+    		]
+    	},
+    	{
+    		"id" : "comment",
+    		"label" : "Kommentar",
+    		"type" : "textarea",
+    		"size" : 5,
+    		"pageElementsLink" : {
+    			"kommentar" : "value"
+    		}
+    	},
+    	{
+    		"id" : "angle",
+    		"type" : "hidden",
+    		"pageElementsLink" : {
+    			"nordpfeil" : "angle",
+    			"karte" : "angle",
+    			"minikarte" : "angle"
+    		}
+    	},
+    	{
+    		"id" : "coordinates",
+    		"type" : "hidden"
+    	},
+    	{
+    		"id" : "scale",
+    		"type" : "hidden",
+    		"pageElementsLink" : {
+    			"scale" : "value"
+    		}    		
+    	}    	    		
+    ],
+    "pages" : [
+    	{
+    	 "tpl" : "mapbender_template2.pdf",
+    	 "useTplPage" : 1,
+    	 "elements" : {
+	    	 "karte" : {
+    			"type" : "map",
+    			"res_dpi" : 72, 
+    			"x_ul" : 11.7,
+	    		"y_ul" : 23.1,
+	    		"width" : 186.5,
+    			"height" : 253.9,
+    			"coords" : 1,
+    			"coords_font_family" : "Arial",
+    			"coords_font_size" : 6
+	   			},
+	   		"messung" : {
+    			"type" : "measure",
+    			"do_fill" : 0,
+    			"fill_color" : {
+    				"r" : 255,
+    				"g" : 0,
+    				"b" : 0
+    				},
+    			"do_stroke" : 0,
+    			"stroke_color" : {
+    				"r" : 0,
+    				"g" : 0,
+    				"b" : 0
+    				},
+    			"line_style" : {
+    				"width" : 1.0
+    				}    			
+	   			},	   			
+	   		"minikarte" : {
+    			"type" : "overview",
+    			"res_dpi" : 72, 
+    			"x_ul" : 11.6,
+	    		"y_ul" : 227,
+	    		"width" : 50,
+    			"height" : 50
+	   			},
+	   		"titel" : {
+    			"type" : "text", 
+    			"x_ul" : 11.5,
+	    		"y_ul" : 13,
+	    		"font_family" : "Arial",
+	    		"font_size" : 14
+	   			},
+	   		"kommentar" : {
+    			"type" : "para", 
+    			"x_ul" : 45,
+	    		"y_ul" : 285,
+	    		"font_family" : "Arial",
+	    		"font_size" : 11,
+	    		"width" : 120,
+	    		"height" : 12,
+	    		"align" : "C",
+	    		"border" : 0,
+	    		"fill" : 1,
+	    		"border_width" : 0.5
+	   			},
+	   		"scale" : {
+    			"type" : "text", 
+    			"x_ul" : 100.2,
+	    		"y_ul" : 281.4,
+	    		"font_family" : "Arial",
+	    		"font_size" : 11,
+				"value" : "scale"
+	   		},
+	   		"nordpfeil" : {
+    			"type" : "image", 
+    			"x_ul" : 190,
+	    		"y_ul" : 257,
+	    		"width" : 8,
+	    		"height" : 18,
+	    		"angle" : 0,
+				"filename" : "./img/northarrow.png"
+	   			}		   						
+	   		}
+	   	}
+	]
+}
\ No newline at end of file

Added: branches/print_dev/http/print/mapbender_template2.pdf
===================================================================
(Binary files differ)


Property changes on: branches/print_dev/http/print/mapbender_template2.pdf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the Mapbender_commits mailing list