CSS Beispiele für Punkte

Beispiel 0

Das folgende Beispiel zeigt alle Möglichkeiten zur Darstellung eines Punktes.

Beispiel Punkte

unordered::point::id0 {
	render-quality: antialiased;
	complex-graphics:
		/* Zelle 0, 0 */
		text {
			text: "Alpha@Beta";
			text-line-break-character: @;
			text-color: red;
			text-color-opacity: 1.0;
			text-font-name: "Arial";
			text-font-type: standard;
			text-height: 5.0m;
			min-text-height: 10;
			max-text-height: 100;
			text-height-measurement: cardo;
			text-weight: 400;
			text-style: italic, underline;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: -36.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: 36.0m;
			min-position-y: 0;
			max-position-y: 0;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -36.0m;
			position-y: 36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 1, 0 */
		text {
			text: [LABEL];
			text-color: RGBA(0, 255, 0, 1.0);
			text-font-name: "Arial";
			text-height: 7.0m;
			min-text-height: 10;
			max-text-height: 100;
			text-height-measurement: windows;
			text-style: strikeout;
			text-quality: aliased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: -18.0m;
			position-y: 36.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -18.0m;
			position-y: 36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 2, 0 */
		text {
			text: [FirstChar(LABEL) // "_" // ToString(PARAM)];
			text-color: #FF00FFFF;
			text-background-color: green;
			text-background-color-opacity: 0.5;
			text-font-name: "Arial";
			text-height: 4.0m;
			min-text-height: 10;
			max-text-height: 100;
			text-rotation: -45.0;
			position-x: 0.0m;
			position-y: 36.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 0.0m;
			position-y: 36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 3, 0 */
		text {
			text: 0x22;
			text-color: blue;
			text-color-opacity: 0.5;
			text-font-name: "Webdings";
			text-font-type: symbols;
			text-height: 13.0m;
			min-text-height: 10;
			max-text-height: 100;
			text-height-measurement: windows;
			position-x: 18.0m;
			position-y: 36.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 18.0m;
			position-y: 36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 4, 0 */
		line {
			line-width: 2px;
			line-min-width: 2;
			line-max-width: 2;
			line-color: red;
			line-color-opacity: 1.0;
			line-cap: round;
			x1: 29.0m;
			min-x1: 0;
			max-x1: 0;
			y1: 29.0m;
			min-y1: 0;
			max-y1: 0;
			x2: 43.0m;
			min-x2: 0;
			max-x2: 0;
			y2: 43.0m;
			min-y2: 0;
			max-y2: 0;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 36.0m;
			position-y: 36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 0, 1 */
		line {
			line-width: 4px;
			line-color: RGB(0, 255, 0);
			line-cap: flat;
			line-dash-style: dash_dot_dot;
			x1: -43.0m;
			y1: 11.0m;
			x2: -29.0m;
			y2: 25.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -36.0m;
			position-y: 18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 1, 1 */
		line {
			line-width: 4px;
			line-color: RGB(0, 0, 255);
			line-color-opacity: 0.5;
			line-cap: flat;
			line-dash-style: custom;
			line-dash-pattern: 8px, 4px;
			line-min-dash-pattern: 8, 4;
			line-max-dash-pattern: 8, 4;
			x1: -25.0m;
			y1: 11.0m;
			x2: -11.0m;
			y2: 25.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -18.0m;
			position-y: 18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 2, 1 */
		polyline {
			line-width: 2px;
			line-min-width: 2;
			line-max-width: 2;
			line-color: red;
			line-color-opacity: 1.0;
			line-join: miter;
			line-miter-limit: 10px;
			line-min-miter-limit: 10;
			line-max-miter-limit: 10;
			line-cap: round;
			position-x: 0.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: 18.0m;
			min-position-y: 0;
			max-position-y: 0;
			points: (-7m, -7m), (0m, 7m), (7m, -7m);
			min-points: (0, 0), (0, 0), (0, 0);
			max-points: (0, 0), (0, 0), (0, 0);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 0.0m;
			position-y: 18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 3, 1 */
		polyline {
			line-width: 4px;
			line-color: green;
			line-join: round;
			line-cap: flat;
			line-dash-style: dash_dot_dot;
			position-x: 18.0m;
			position-y: 18.0m;
			points: (-7m, -7m), (0m, 7m), (7m, -7m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 18.0m;
			position-y: 18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 4, 1 */
		polyline {
			line-width: 4px;
			line-color: blue;
			line-join: round;
			line-cap: flat;
			line-dash-style: custom;
			line-dash-pattern: 8px, 4px;
			line-min-dash-pattern: 8, 4;
			line-max-dash-pattern: 8, 4;
			position-x: 36.0m;
			position-y: 18.0m;
			points: (-7m, -7m), (0m, 7m), (7m, -7m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 36.0m;
			position-y: 18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 0, 2 */
		arc {
			line-width: 2px;
			line-min-width: 2;
			line-max-width: 2;
			line-color: red;
			line-color-opacity: 1.0;
			line-cap: round;
			radius: 7.0m;
			min-radius: 0;
			max-radius: 0;
			start-angle: 30;
			sweep-angle: 250.0;
			position-x: -36.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: 0.0m;
			min-position-y: 0;
			max-position-y: 0;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -36.0m;
			position-y: 0.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 1, 2 */
		arc {
			line-width: 4px;
			line-color: green;
			line-cap: flat;
			line-dash-style: dash_dot_dot;
			radius: 7.0m;
			start-angle: 30;
			sweep-angle: 250.0;
			position-x: -18.0m;
			position-y: 0.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -18.0m;
			position-y: 0.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 2, 2 */
		arc {
			line-width: 4px;
			line-color: blue;
			line-cap: flat;
			line-dash-style: custom;
			line-dash-pattern: 8px, 4px;
			line-min-dash-pattern: 8, 4;
			line-max-dash-pattern: 8, 4;
			radius: 7.0m;
			start-angle: 30;
			sweep-angle: 250.0;
			position-x: 0.0m;
			position-y: 0.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 0.0m;
			position-y: 0.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 3, 2 */
		circle {
			line-width: 2px;
			line-min-width: 2;
			line-max-width: 2;
			line-color: red;
			line-color-opacity: 1.0;
			fill-pattern: none;
			radius: 7.0m;
			min-radius: 0;
			max-radius: 0;
			position-x: 18.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: 0.0m;
			min-position-y: 0;
			max-position-y: 0;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 18.0m;
			position-y: 0.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 4, 2 */
		circle {
			line-width: 4px;
			line-color: green;
			fill-pattern: solid;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			radius: 7.0m;
			position-x: 36.0m;
			position-y: 0.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 36.0m;
			position-y: 0.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 0, 3 */
		circle {
			line-width: 4px;
			line-color: green;
			line-cap: flat;
			line-dash-style: dash_dot_dot;
			fill-pattern: hatch_style_diagonal_cross;
			distance-between-pattern-lines: 10px;
			min-distance-between-pattern-lines: 10;
			max-distance-between-pattern-lines: 10;
			pattern-lines-width: 2px;
			min-pattern-lines-width: 2;
			max-pattern-lines-width: 2;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			background-color: RGB(200, 200, 200);
			background-color-opacity: 1.0;
			fill-pattern-texture-displacement-x: 0px;
			min-fill-pattern-texture-displacement-x: 0;
			max-fill-pattern-texture-displacement-x: 0;
			fill-pattern-texture-displacement-y: 0px;
			min-fill-pattern-texture-displacement-y: 0;
			max-fill-pattern-texture-displacement-y: 0;
			radius: 7.0m;
			position-x: -36.0m;
			position-y: -18.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -36.0m;
			position-y: -18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 1, 3 */
		circle {
			line-width: 4px;
			line-color: blue;
			line-cap: flat;
			line-dash-style: custom;
			line-dash-pattern: 8px, 4px;
			line-min-dash-pattern: 8, 4;
			line-max-dash-pattern: 8, 4;
			fill-pattern: pixmap;
			fill-pattern-pixmap: "D:\\Temp\\CSS\\TestPattern.bmp";
			fill-pattern-pixmap-width: 20px;
			min-fill-pattern-pixmap-width: 20;
			max-fill-pattern-pixmap-width: 20;
			fill-pattern-pixmap-height: 20px;
			min-fill-pattern-pixmap-height: 20;
			max-fill-pattern-pixmap-height: 20;
			fill-pattern-texture-opacity: 1.0;
			radius: 7.0m;
			position-x: -18.0m;
			position-y: -18.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -18.0m;
			position-y: -18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 2, 3 */
		circle {
			fill-pattern: custom;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			background-color: RGB(200, 200, 200);
			background-color-opacity: 1.0;
			custom-fill-pattern-width: 8;
			custom-fill-pattern-height: 8;
			custom-fill-pattern: 
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0;
			fill-pattern-texture-opacity: 0.5;
			radius: 7.0m;
			position-x: 0.0m;
			position-y: -18.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 0.0m;
			position-y: -18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 3, 3 */
		polygon {
			line-width: 2px;
			line-min-width: 2;
			line-max-width: 2;
			line-color: red;
			line-color-opacity: 1.0;
			line-join: miter;
			line-miter-limit: 10px;
			line-min-miter-limit: 10;
			line-max-miter-limit: 10;
			fill-pattern: none;
			position-x: 18.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: -18.0m;
			min-position-y: 0;
			max-position-y: 0;
			points: (-6m, -6m), (-6m, 6m), (6m, 6m), (6m, -6m);
			min-points: (0, 0), (0, 0), (0, 0), (0, 0);
			max-points: (0, 0), (0, 0), (0, 0), (0, 0);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 18.0m;
			position-y: -18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 4, 3 */
		polygon {
			line-width: 4px;
			line-color: green;
			fill-pattern: solid;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			position-x: 36.0m;
			position-y: -18.0m;
			points: (-6m, -6m), (-6m, 6m), (6m, 6m), (6m, -6m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 36.0m;
			position-y: -18.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 0, 4 */
		polygon {
			line-width: 4px;
			line-color: green;
			line-cap: flat;
			line-dash-style: dash_dot_dot;
			fill-pattern: hatch_style_diagonal_cross;
			distance-between-pattern-lines: 10px;
			min-distance-between-pattern-lines: 10;
			max-distance-between-pattern-lines: 10;
			pattern-lines-width: 2px;
			min-pattern-lines-width: 2;
			max-pattern-lines-width: 2;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			background-color: RGB(200, 200, 200);
			background-color-opacity: 1.0;
			fill-pattern-texture-displacement-x: 0px;
			min-fill-pattern-texture-displacement-x: 0;
			max-fill-pattern-texture-displacement-x: 0;
			fill-pattern-texture-displacement-y: 0px;
			min-fill-pattern-texture-displacement-y: 0;
			max-fill-pattern-texture-displacement-y: 0;
			position-x: -36.0m;
			position-y: -36.0m;
			points: (-6m, -6m), (-6m, 6m), (6m, 6m), (6m, -6m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -36.0m;
			position-y: -36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 1, 4 */
		polygon {
			line-width: 4px;
			line-color: blue;
			line-cap: flat;
			line-dash-style: custom;
			line-dash-pattern: 8px, 4px;
			line-min-dash-pattern: 8, 4;
			line-max-dash-pattern: 8, 4;
			fill-pattern: pixmap;
			fill-pattern-pixmap: "D:\\Temp\\CSS\\TestPattern.bmp";
			fill-pattern-pixmap-width: 20px;
			min-fill-pattern-pixmap-width: 20;
			max-fill-pattern-pixmap-width: 20;
			fill-pattern-pixmap-height: 20px;
			min-fill-pattern-pixmap-height: 20;
			max-fill-pattern-pixmap-height: 20;
			fill-pattern-texture-opacity: 1.0;
			position-x: -18.0m;
			position-y: -36.0m;
			points: (-6m, -6m), (-6m, 6m), (6m, 6m), (6m, -6m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: -18.0m;
			position-y: -36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 2, 4 */
		polygon {
			fill-pattern: custom;
			fill-color: RGB(255, 0, 0);
			fill-color-opacity: 1.0;
			background-color: RGB(200, 200, 200);
			background-color-opacity: 1.0;
			custom-fill-pattern-width: 8;
			custom-fill-pattern-height: 8;
			custom-fill-pattern: 
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				0, 0, 0, 0, 1, 1, 1, 1,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0,
				1, 1, 1, 1, 0, 0, 0, 0;
			fill-pattern-texture-opacity: 0.5;
			position-x: 0.0m;
			position-y: -36.0m;
			points: (-6m, -6m), (-6m, 6m), (6m, 6m), (6m, -6m);
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 0.0m;
			position-y: -36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 3, 4 */
		pixmap {
			file-name: "D:\\Temp\\CSS\\TestPixmap.bmp";
			width: 14.0m;
			min-width: 0;
			max-width: 0;
			height: 14.0m;
			min-height: 0;
			max-height: 0;
			opacity: 1.0;
			rotation: 0.0;
			vertical-alignment: center;
			horizontal-alignment: center;
			position-x: 18.0m;
			min-position-x: 0;
			max-position-x: 0;
			position-y: -36.0m;
			min-position-y: 0;
			max-position-y: 0;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 18.0m;
			position-y: -36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		},
		/* Zelle 4, 4 */
		pixmap {
			file-name: "D:\\Temp\\CSS\\TestPixmap.bmp";
			width: 10.0m;
			height: 10.0m;
			opacity: 0.5;
			rotation: -45.0;
			vertical-alignment: center;
			horizontal-alignment: center;
			position-x: 36.0m;
			position-y: -36.0m;
		},
		polyline {
			line-width: 1px;
			line-color: black;
			line-cap: round;
			position-x: 36.0m;
			position-y: -36.0m;
			points: (-8m, -8m), (8m, -8m), (8m, 8m), (-8m, 8m), (-8m, -8m);
		};
}

Beispiel 1

Das folgende Beispiel zeigt einen Punkt mit einer Puffer-Geometrie (Polygon).

Beispiel Punkt

unordered::point::id0 {
	render-quality: antialiased;
	complex-graphics:
		line {
			line-width: 5px;
			line-color: red;
			line-cap: round;
			x1: -20px;
			y1: 0px;
			x2: 20px;
			y2: 0;
		},
		line {
			line-width: 5px;
			line-color: red;
			line-cap: round;
			x1: 0px;
			y1: -20px;
			x2: 0px;
			y2: 20px;
		};
	buffer-distance: 100px;
	min-buffer-distance: 0;
	max-buffer-distance: 0;
	buffer-arc-segments: 10;
	buffer-polygon:
	{
		render-quality: antialiased;
		fill-pattern: hatch_style_diagonal_cross;
		distance-between-pattern-lines: 20px;
		pattern-lines-width: 2px;
		fill-color: RGB(0, 255, 0);
		background-color: RGB(200, 200, 200);
		border-line:
		{
			render-quality: antialiased;
			line-width: 3px;
			line-color: blue;
			line-join: round;
		};
	};
}

Beispiel 2

Das folgende Beispiel zeigt einen Punkt nur mit einer Puffer-Geometrie (Polygon).

Beispiel Punkt

unordered::point::id0 {
	buffer-distance: 100px;
	min-buffer-distance: 0;
	max-buffer-distance: 0;
	buffer-arc-segments: 10;
	buffer-polygon:
	{
		render-quality: antialiased;
		fill-pattern: hatch_style_diagonal_cross;
		distance-between-pattern-lines: 20px;
		pattern-lines-width: 2px;
		fill-color: RGB(0, 255, 0);
		background-color: RGB(200, 200, 200);
		border-line:
		{
			render-quality: antialiased;
			line-width: 3px;
			line-color: blue;
			line-join: round;
		};
	};
}

Beispiel 3

Das folgende Beispiel zeigt einen Punkt mit einer SVG Pfad (Path) Geometrie.

Beispiel Punkt

unordered::point::id0 {
	render-quality: antialiased;
	complex-graphics:
		path {
			path-top: -4;
			path-left: -4;
			path-width: 8;
			path-height: 8;
			flip-y: false;
			horizontal-alignment: center;
			vertical-alignment: center;
			target-position-x: 0.0px;
			target-min-position-x: 0.0;
			target-max-position-x: 0.0;
			target-position-y: 0.0px;
			target-min-position-y: 0.0;
			target-max-position-y: 0.0;
			target-width: 40.0m;
			target-min-width: 0.0;
			target-max-width: 0.0;
			target-height: 40.0m;
			target-min-height: 0.0;
			target-max-height: 0.0;
			line-width: 1.0m;
			line-color: black;
			line-join: round;
			line-cap: round;
			fill-pattern: solid;
			fill-color: RGB(0, 128, 0);
			path-commands: M -2 -3 A 2 2 0 1 1 2 -3 L 3 -2 A 2 2 0 1 1 3 2 L 2 3 A 2 2 0 1 1 -2 3 L -3 2 A 2 2 0 1 1 -3 -2 Z M -2 0 A 2 2 0 1 1 2 0 A 2 2 0 1 1 -2 -0;
		};
}

Beispiel 4

Das folgende Beispiel zeigt eine praktische Anwendung.

Beispiel Punkt

unordered::point::Löschwasserteich {
	render-quality: antialiased;
	complex-graphics:
        text {
			text: "100"; // Die Zahl hier würde in der Praxis aus einer Datenbank kommen (z.Bsp. [ToString(Area)] die ToString() Funktion ist notwendig wenn die Spalte eine Zahl liefert, da der Ausdruck als Ergebnis einen String erwartet)
			text-color: black;
			text-font-name: "Arial";
			text-font-type: standard;
			text-height: 3.5m;
			min-text-height: 4.2;
			max-text-height: 33.6;
			text-height-measurement: cardo;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: -3m;
			min-position-x: -28.8;
			max-position-x: -3.6;
			position-y: -8m;
			min-position-y: -76.8;
			max-position-y: -9.6;
		},
        text {
			text: "m³";
			text-color: black;
			text-font-name: "Arial";
			text-font-type: standard;
			text-height: 3.5m;
			min-text-height: 4.2;
			max-text-height: 33.6;
			text-height-measurement: cardo;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: 5m;
			min-position-x: 6;
			max-position-x: 48;
			position-y: -8m;
			min-position-y: -76.8;
			max-position-y: -9.6;
		},
		path {
			path-top: 0;
			path-left: 0;
			path-width: 18;
			path-height: 12;
			horizontal-alignment: center;
			vertical-alignment: center;
			target-position-x: 0px;
			target-position-y: 0px;
			target-width: 15m;
			target-min-width: 18;
			target-max-width: 144;
			target-height: 10m;
			target-min-height: 12;
			target-max-height: 96;
			line-width: 0.5m;
            line-min-width: 1;
            line-max-width: 3;
			line-color: black;
			line-join: round;
			line-cap: round;
			path-commands: M 3 4 h 1 v 7 h 10 v -7 h 1 M 0 6 L 2 4 M 0 9 L 4 5 M 0 12 L 4 8 M 3 12 L 4 11 M 6 12 L 7 11 M 9 12 L 10 11 M 12 12 L 13 11 M 15 12 L 18 9 M 14 10 L 18 6 M 14 7 L 17 4 M 9 0 v 6 M 8 0 h 2 M 6 1 L 7 0 M 6.5 0.5 L 9 3 M 11 0 L 12 1 M 11.5 0.5 L 9 3 M 4 7.5 A 2 2 0 0 0 6 7 A 2 2 0 0 0 9 7 A 2 2 0 0 0 12 7 A 2 2 0 0 0 14 7.5;
		},
		path {
			path-top: 0;
			path-left: 0;
			path-width: 1;
			path-height: 1;
			horizontal-alignment: center;
			vertical-alignment: center;
			target-position-x: 0px;
			target-position-y: -2.5m;
            target-min-position-y: -24;
            target-max-position-y: -3;
			target-width: 17m;
			target-min-width: 20.4;
			target-max-width: 163.2;
			target-height: 17m;
			target-min-height: 20.4;
			target-max-height: 163.2;
			line-width: 1m;
            line-min-width: 1.2;
            line-max-width: 9.6;
			line-color: RGB(0, 130, 200);
			line-join: miter;
			line-cap: square;
			path-commands: M 0 0 H 1 V 1 H 0 Z;
		};
}

Beispiel 5

Das folgende Beispiel zeigt an der Stelle des Punktes einen Text mit Halo. Achtung: Text-Halos werden zur Zeit nur im Agge (AntiGrain) Renderer unterstützt.

Beispiel Punkt

unordered::point::id0 {
	render-quality: antialiased;
	complex-graphics:
		text {
			text: "Alpha@Beta";
			text-line-break-character: @;
			text-color: red;
			text-color-opacity: 1.0;
			text-halo-color: green;
			text-halo-color-opacity: 1.0;
			text-halo-width: 1.0m;
			min-text-halo-width: 1;
			max-text-halo-width: 5;
			draw-text-halo-first: false;
			text-font-name: "Arial";
			text-font-type: standard;
			text-height: 20.0m;
			min-text-height: 10;
			max-text-height: 100;
			text-height-measurement: cardo;
			text-weight: 400;
			text-style: italic, underline;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: 0.0px;
			min-position-x: 0;
			max-position-x: 0;
			position-y: 0.0px;
			min-position-y: 0;
			max-position-y: 0;
		};
}

Beispiel 6

Zeigt einen einfachen roten Punkt.

Beispiel Punkt

ordered {
	    point {
		    complex-graphics:
		    circle {			
			    fill-pattern: solid;
			    fill-color: red;
			    radius: 15m;
			    min-radius: 8;
			    max-radius: 15;
			    };
		    }
     }

Beispiel 7

Zeigt einen einfachen schwarzen Punkt mit Beschriftung. Diese wird über dem Punkt angezeigt.

Beispiel Punkt

ordered {
	    point {
		    complex-graphics:
		    circle {						
			    radius: 10m;
			    min-radius: 8;
			    max-radius: 12;
			    fill-color: black;
			    fill-pattern: solid;
			    },
		    text {		
			    /*Spalte, wo die Beschriftung her kommt*/
			    text: [name];
			    text-color: black;
			    text-font-name: "arial";
			    text-height: 10px;			
			    text-quality: antialiased;
			    text-horizontal-alignment: center;
			    text-vertical-alignment: center;
			    /*Verschiebung des Textes in px oder m möglich*/
			    position-x:0px;
			    position-y:20px;			
		    };
        }
     }

Beispiel 8

Zeigt einen einfachen schwarzen Kreis. Innerhalb des Kreises wird eine Nummer aus der Datenquelle angezeigt. Der Hintergrund ist weiß.

Beispiel Punkt

ordered {
	    point {
		    complex-graphics:
		    circle {
			    line-width: 2px;
			    line-color: black;			
			    radius: 50m;
			    min-radius: 8;
			    max-radius: 15;
			    fill-color: white;
			    fill-pattern: solid;
			    },
		    text {		
			    /*Spalte, wo die Nummer her kommt*/
		        text: [name];
			    text-color: black;
			    text-font-name: "arial";
			    text-height: 10px;			
			    text-quality: antialiased;
			    text-horizontal-alignment: center;
			    text-vertical-alignment: center;
			
		    };	
        }
     }

Beispiel 9

Das folgende Beispiel zeichnet zwei Symbole und einen gefüllten Kreis an einen Punkt.

Beispiel Punkt

unordered::point::gpsLocation {
        render-quality: antialiased;
	complex-graphics:
		text {
			text: 57810;
			text-color: black;
			text-font-name: "Segoe MDL2 Assets";
			text-font-type: symbols;
			text-height-measurement: windows;
			text-height: 20px;
			text-weight: 400;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: 0;
			position-y: 0;
		},
		text {
			text: 57657;
			text-color: black;
			text-font-name: "Segoe MDL2 Assets";
			text-font-type: symbols;
			text-height-measurement: windows;
			text-height: 30px;
			text-weight: 400;
			text-quality: antialiased;
			text-horizontal-alignment: center;
			text-vertical-alignment: center;
			position-x: 1;
			position-y: 15;
		},
		circle {
			fill-color: red;
			fill-pattern: solid;
			position-x: 0;
			position-y: 0;
			radius: 3px;
		};
}

Beispiel 10

Das folgende Beispiel zeichnet das Symbol für Kraftwerke aus der Schriftart Atkis. Dieses Symbol wird aus 3 Zeichen der Schriftart zusammengesetzt.

Beispiel Punkt

[SIGNATUR === "21000"] {
	point {
		render-quality: antialiased;			
		complex-graphics:
			text {
				text: "F";
				text-color: RGBA(0, 0, 0, 1);
				text-font-name: "ATKIS_1";
				text-font-type: symbols;
				text-height: 15m;
				text-quality: antialiased;
                text-horizontal-alignment: center;
				text-vertical-alignment: center;
			},
			text {
				text: "G";
				text-color: RGBA(255, 255, 255, 1);
				text-font-name: "ATKIS_1";
				text-font-type: symbols;
				text-height: 15m;
				text-quality: antialiased;				
				text-horizontal-alignment: center;
				text-vertical-alignment: center;
			},
			text {
				text: "H";
				text-color: RGBA(0, 0, 0, 1);
				text-font-name: "ATKIS_1";
				text-font-type: symbols;
				text-height: 15m;					
				text-quality: antialiased;				
				text-horizontal-alignment: center;
				text-vertical-alignment: center;
			};
		}
	}

Beispiel 11

Im Beispiel werden 4 Kreise unterschiedlicher Größe gezeichnet.

Beispiel Punkt

{
point {
	render-quality: antialiased;
	complex-graphics:
		circle {				
			fill-color: RGBA(255, 86, 86, 1);
			fill-pattern: solid;
			radius: 10m;
		};
}
point {
	render-quality: antialiased;
	complex-graphics:
		circle {
			fill-color: RGBA(128, 255, 0, 1);
			fill-pattern: solid;
			radius: 8m;
		};
}
point {
	render-quality: antialiased;
	complex-graphics:
		circle {				
			fill-color: RGBA(255, 0, 0, 1);
			fill-pattern: solid;
			radius: 4m;
		};
	}
point {
	render-quality: antialiased;
	complex-graphics:
		circle {
			fill-color: RGBA(128, 255, 0, 1);
			fill-pattern: solid;
			radius: 2m;
		};
	}
}


Zuletzt geändert: 06.09.2018 16:56:57 (erstmals erstellt 02.06.2017)