From 83657d2420d40455d301b507a9202d2f07db8f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Sat, 30 Nov 2024 12:33:24 +0100 Subject: [PATCH] Move the help to the end, add examples --- tilecloud_chain/templates/admin_index.html | 95 ++++++++++++--------- tilecloud_chain/tests/index.expected.png | Bin 116926 -> 173286 bytes tilecloud_chain/tests/test_ui.py | 2 +- 3 files changed, 57 insertions(+), 40 deletions(-) diff --git a/tilecloud_chain/templates/admin_index.html b/tilecloud_chain/templates/admin_index.html index 12e05f4a4..ae5e321fd 100644 --- a/tilecloud_chain/templates/admin_index.html +++ b/tilecloud_chain/templates/admin_index.html @@ -138,45 +138,6 @@

Launch generation

%endif - - %if request.identity.is_auth: -

Usage

-

generate-tiles

-

Generate the tiles.

-

Arguments:

- - -

generate-controller --generate-legend-images

-

Generate the legend images.

- %endif -

Test

See the result in the test page.

@@ -289,6 +250,62 @@

Errors occur during the generation (max 5)

%endif + + %if request.identity.is_auth: +

Command help

+

Examples

+ +

generate-tiles: Generate all the layers.

+

generate-tiles --layer=LAYER: Generate the LAYER map.

+

+ generate-tiles --layer=LAYER --zoom=2-5: Generate the LAYER map for the zoom + levels 2 to 5. +

+

+ generate-tiles --layer=LAYER --bbox MINX MINY MAXX MAXY: Generate the + LAYER map for the specified bounding box. +

+

generate-controller --generate-legend-images: Generate the legend images.

+

+ generate-tiles --layer=LAYER --get-hash=15/0/0: Get the hash for the LAYER. +

+

generate-tiles --layer=LAYER --get-bbox=0/0/0: Get the bbox of the tile.

+ +

generate-tiles

+

Generate the tiles.

+

Arguments:

+ +

generate-controller --generate-legend-images

+

Generate the legend images.

+ %endif +