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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 23 10:47:36 EST 2010


Author: astrid_emde
Date: 2010-02-23 10:47:35 -0500 (Tue, 23 Feb 2010)
New Revision: 5611

Modified:
   trunk/mapbender/http/print/A3_landscape_template.json
   trunk/mapbender/http/print/A3_portrait_template.json
   trunk/mapbender/http/print/A4_landscape_template.json
   trunk/mapbender/http/print/A4_portrait_template.json
Log:
Legend added

Modified: trunk/mapbender/http/print/A3_landscape_template.json
===================================================================
--- trunk/mapbender/http/print/A3_landscape_template.json	2010-02-23 15:46:42 UTC (rev 5610)
+++ trunk/mapbender/http/print/A3_landscape_template.json	2010-02-23 15:47:35 UTC (rev 5611)
@@ -176,6 +176,22 @@
 	    		"border_width" : 0.5
 	   			}
 	   		}
-	   	}
+	   	},
+	   	  	{
+            "tpl" : "A3_landscape_template.pdf",
+            "useTplPage" : 2,
+            "elements" : {
+                "legende" : {
+                    "type" : "legend",
+                    "x_ul" : 10,
+                    "y_ul" : 42,
+                    "width" : 90,
+                    "height" : 180,
+                    "font_family" : "Arial",
+                    "font_size" : 13,
+                    "scale" : 0.75
+                }
+			}
+        }
 	]
 }
\ No newline at end of file

Modified: trunk/mapbender/http/print/A3_portrait_template.json
===================================================================
--- trunk/mapbender/http/print/A3_portrait_template.json	2010-02-23 15:46:42 UTC (rev 5610)
+++ trunk/mapbender/http/print/A3_portrait_template.json	2010-02-23 15:47:35 UTC (rev 5611)
@@ -176,6 +176,22 @@
 	    		"border_width" : 0.5
 	   			}
 	   		}
-	   	}
+	   	},
+	   	  	{
+            "tpl" : "A3_portrait_template.pdf",
+            "useTplPage" : 2,
+            "elements" : {
+                "legende" : {
+                    "type" : "legend",
+                    "x_ul" : 7,
+                    "y_ul" : 4,
+                    "width" : 90,
+                    "height" : 180,
+                    "font_family" : "Arial",
+                    "font_size" : 14,
+                    "scale" : 1
+                }
+			}
+        }
 	]
 }
\ No newline at end of file

Modified: trunk/mapbender/http/print/A4_landscape_template.json
===================================================================
--- trunk/mapbender/http/print/A4_landscape_template.json	2010-02-23 15:46:42 UTC (rev 5610)
+++ trunk/mapbender/http/print/A4_landscape_template.json	2010-02-23 15:47:35 UTC (rev 5611)
@@ -176,6 +176,22 @@
 	    		"border_width" : 0.5
 	   			}
 	   		}
-	   	}
+	   	},
+	   	  	{
+            "tpl" : "A4_landscape_template.pdf",
+            "useTplPage" : 2,
+            "elements" : {
+                "legende" : {
+                    "type" : "legend",
+                    "x_ul" : 10,
+                    "y_ul" : 38,
+                    "width" : 90,
+                    "height" : 160,
+                    "font_family" : "Arial",
+                    "font_size" : 9,
+                    "scale" : 0.5
+                }
+			}
+        }
 	]
 }
\ No newline at end of file

Modified: trunk/mapbender/http/print/A4_portrait_template.json
===================================================================
--- trunk/mapbender/http/print/A4_portrait_template.json	2010-02-23 15:46:42 UTC (rev 5610)
+++ trunk/mapbender/http/print/A4_portrait_template.json	2010-02-23 15:47:35 UTC (rev 5611)
@@ -4,178 +4,196 @@
     "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" : "comment1",
-    		"label" : "Kommentar 1",
-    		"type" : "textarea",
-    		"size" : 5,
-    		"pageElementsLink" : {
-    			"kommentar1" : "value"
-    		}
-    	},
-    	{
-    		"id" : "comment2",
-    		"label" : "Kommentar 2",
-    		"type" : "textarea",
-    		"size" : 5,
-    		"pageElementsLink" : {
-    			"kommentar2" : "value"
-    		}
-    	},
- 	{
-    		"id" : "angle",
-    		"label" : "Winkel",
-    		"type" : "text",
-    		"pageElementsLink" : {
-    			"nordpfeil" : "angle",
-    			"karte" : "angle",
-    			"minikarte" : "angle"
-    		}
-    	},
-    	{
-    		"id" : "coordinates",
-    		"type" : "hidden"
-    	},
-    	{
-    		"id" : "scale",
-    		"label" : "Maßstab",
-    		"type" : "text",
-    		"pageElementsLink" : {
-    			"scale" : "value"
-    		}
-    	}
+        {
+            "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" : "comment1",
+            "label" : "Kommentar 1",
+            "type" : "textarea",
+            "size" : 5,
+            "pageElementsLink" : {
+                "kommentar1" : "value"
+            }
+        },
+        {
+            "id" : "comment2",
+            "label" : "Kommentar 2",
+            "type" : "textarea",
+            "size" : 5,
+            "pageElementsLink" : {
+                "kommentar2" : "value"
+            }
+        },
+        {
+            "id" : "angle",
+            "label" : "Winkel",
+            "type" : "text",
+            "pageElementsLink" : {
+                "nordpfeil" : "angle",
+                "karte" : "angle",
+                "minikarte" : "angle"
+            }
+        },
+        {
+            "id" : "coordinates",
+            "type" : "hidden"
+        },
+        {
+            "id" : "scale",
+            "label" : "Maßstab",
+            "type" : "text",
+            "pageElementsLink" : {
+                "scale" : "value"
+            }
+        }
     ],
     "pages" : [
-    	{
-    	 "tpl" : "A4_portrait_template.pdf",
-    	 "useTplPage" : 1,
-    	 "elements" : {
-	    	 "karte" : {
-    			"type" : "map",
-    			"res_dpi" : 72,
-    			"x_ul" : 9.4,
-	    		"y_ul" : 34.1,
-	    		"width" : 190.4,
-    			"height" : 241,
-    			"coords" : 1,
-    			"coords_font_family" : "Arial",
-    			"coords_font_size" : 8
-	   			},
-	   		"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" : 9.2,
-	    		"y_ul" : 34.1,
-	    		"width" : 40,
-    			"height" : 40
-	   			},
-	   		"titel" : {
-    			"type" : "text",
-    			"x_ul" : 10,
-	    		"y_ul" : 9,
-	    		"font_family" : "Arial",
-	    		"font_size" : 15
-	   			},
-	   		"scale" : {
-    			"type" : "text",
-    			"x_ul" : 32.5,
-	    		"y_ul" : 17,
-	    		"font_family" : "Arial",
-	    		"font_size" : 11,
-				"value" : "scale"
-	   		},
-	   		"date" : {
-    			"type" : "text",
-    			"x_ul" : 32.5,
-	    		"y_ul" : 25,
-	    		"font_family" : "Arial",
-	    		"font_size" : 11,
-				"value" : "scale"
-	   		},
-	   		"nordpfeil" : {
-    			"type" : "image",
-    			"x_ul" : 184,
-	    		"y_ul" : 49,
-	    		"width" : 16,
-	    		"height" : 16,
-	    		"angle" : 0,
-				"filename" : "./img/northarrow.png"
-	   		},
-	   		"kommentar1" : {
-    			"type" : "para",
-    			"x_ul" : 81.2,
-	    		"y_ul" : 18.2,
-	    		"font_family" : "Arial",
-	    		"font_size" : 11,
-	    		"width" : 40,
-	    		"height" : 6,
-	    		"align" : "L",
-	    		"border" : 0,
-	    		"fill" : 1,
-	    		"border_width" : 0.5
-	   			},
-	   		"kommentar2" : {
-    			"type" : "para",
-    			"x_ul" : 81.2,
-	    		"y_ul" : 23.6,
-	    		"font_family" : "Arial",
-	    		"font_size" : 11,
-	    		"width" : 40,
-	    		"height" : 6,
-	    		"align" : "L",
-	    		"border" : 0,
-	    		"fill" : 1,
-	    		"border_width" : 0.5
-	   			}
-	   		}
-	   	}
-	]
+        {
+            "tpl" : "A4_portrait_template.pdf",
+            "useTplPage" : 1,
+            "elements" : {
+                "karte" : {
+                    "type" : "map",
+                    "res_dpi" : 72,
+                    "x_ul" : 9.4,
+                    "y_ul" : 34.1,
+                    "width" : 190.4,
+                    "height" : 241,
+                    "coords" : 1,
+                    "coords_font_family" : "Arial",
+                    "coords_font_size" : 8
+                },
+                "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" : 9.2,
+                    "y_ul" : 34.1,
+                    "width" : 40,
+                    "height" : 40
+                },
+                "titel" : {
+                    "type" : "text",
+                    "x_ul" : 10,
+                    "y_ul" : 9,
+                    "font_family" : "Arial",
+                    "font_size" : 15
+                },
+                "scale" : {
+                    "type" : "text",
+                    "x_ul" : 32.5,
+                    "y_ul" : 17,
+                    "font_family" : "Arial",
+                    "font_size" : 11,
+                    "value" : "scale"
+                },
+                "date" : {
+                    "type" : "text",
+                    "x_ul" : 32.5,
+                    "y_ul" : 25,
+                    "font_family" : "Arial",
+                    "font_size" : 11,
+                    "value" : "scale"
+                },
+                "nordpfeil" : {
+                    "type" : "image",
+                    "x_ul" : 184,
+                    "y_ul" : 49,
+                    "width" : 16,
+                    "height" : 16,
+                    "angle" : 0,
+                    "filename" : "./img/northarrow.png"
+                },
+                "kommentar1" : {
+                    "type" : "para",
+                    "x_ul" : 81.2,
+                    "y_ul" : 18.2,
+                    "font_family" : "Arial",
+                    "font_size" : 11,
+                    "width" : 40,
+                    "height" : 6,
+                    "align" : "L",
+                    "border" : 0,
+                    "fill" : 1,
+                    "border_width" : 0.5
+                },
+                "kommentar2" : {
+                    "type" : "para",
+                    "x_ul" : 81.2,
+                    "y_ul" : 23.6,
+                    "font_family" : "Arial",
+                    "font_size" : 11,
+                    "width" : 40,
+                    "height" : 6,
+                    "align" : "L",
+                    "border" : 0,
+                    "fill" : 1,
+                    "border_width" : 0.5
+                }
+            }
+        },
+        {
+            "tpl" : "A4_portrait_template.pdf",
+            "useTplPage" : 2,
+            "elements" : {
+                "legende" : {
+                    "type" : "legend",
+                    "x_ul" : 7,
+                    "y_ul" : 36,
+                    "width" : 90,
+                    "height" : 180,
+                    "font_family" : "Arial",
+                    "font_size" : 10.5,
+                    "scale" : 0.9
+                }
+			}
+        }
+    ]
 }
\ No newline at end of file



More information about the Mapbender_commits mailing list