[Mapbender-commits] r5376 - trunk/mapbender/http/print

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jan 20 09:35:55 EST 2010


Author: christoph
Date: 2010-01-20 09:35:55 -0500 (Wed, 20 Jan 2010)
New Revision: 5376

Added:
   trunk/mapbender/http/print/ConfigTemplateHelp.json
   trunk/mapbender/http/print/mapbender_template.pdf
Modified:
   trunk/mapbender/http/print/mapbender_template.json
Log:


Added: trunk/mapbender/http/print/ConfigTemplateHelp.json
===================================================================
--- trunk/mapbender/http/print/ConfigTemplateHelp.json	                        (rev 0)
+++ trunk/mapbender/http/print/ConfigTemplateHelp.json	2010-01-20 14:35:55 UTC (rev 5376)
@@ -0,0 +1,65 @@
+{
+    "type" : "templatePDF", 					# define the PDF type: "templatePDF", "dynamicPDF"
+    "orientation" : "L",
+    "units" : "mm",
+    "format" : "a4",
+    "controls" : [								# the controls object defines additional form elements
+    	{										# that should be displayed in the application
+    		"id" : "title",						# the id of the form element 
+    		"label" : "Titel",					# the label of the form element
+    		"type" : "text",					# the form elements type: text, select, ...
+    		"size" : 20,						# a size value, where applicable ...
+    		"pageElementsLink" : "title:value"	# this links the form element value to a page element 
+    	},										# in the pdf, the syntax is still work in progress
+    	{
+    		"id" : "dpi",
+    		"label" : "DPI",
+    		"type" : "select",
+    		"size" : 20,
+    		"pageElementsLink" : "map: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" : "comment:value"
+    	}    	    		
+    ],
+    "pages" : [									# the pages elements defines a list of page configurations
+    	{
+    	 "tpl" : "mbtemplate1.pdf",				# which template to use
+    	 "useTplPage" : 1,						# which page of the template to use
+    	 "elements" : {							# the elements object defines which elements are placed on this page
+	    	 "map" : {
+    			"show" : true,
+    			"res_dpi" : 72, 
+    			"x_ul" : 10.1,
+	    		"y_ul" : 15.2,
+	    		"width" : 280,
+    			"height" : 185
+	   			},
+	   		"overview" : {
+    			"show" : true,
+    			"res_dpi" : 72, 
+    			"x_ul" : 10.1,
+	    		"y_ul" : 15.2,
+	    		"width" : 50,
+    			"height" : 50
+	   			}
+	   		}
+	   	}
+	]
+}
\ No newline at end of file

Modified: trunk/mapbender/http/print/mapbender_template.json
===================================================================
--- trunk/mapbender/http/print/mapbender_template.json	2010-01-20 14:32:41 UTC (rev 5375)
+++ trunk/mapbender/http/print/mapbender_template.json	2010-01-20 14:35:55 UTC (rev 5376)
@@ -66,7 +66,7 @@
     ],
     "pages" : [
     	{
-    	 "tpl" : "mapbender_template2.pdf",
+    	 "tpl" : "mapbender_template.pdf",
     	 "useTplPage" : 1,
     	 "elements" : {
 	    	 "karte" : {

Added: trunk/mapbender/http/print/mapbender_template.pdf
===================================================================
(Binary files differ)


Property changes on: trunk/mapbender/http/print/mapbender_template.pdf
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream



More information about the Mapbender_commits mailing list