3liz / qgis-server-wmts-cache-plugin

plugin QGIS Server de cache pour tuile WMTS
6 stars 1 forks source link

WMTS Cache manager HTML User Interface: landing page and collections #7

Open rldhont opened 3 years ago

rldhont commented 3 years ago

Provide HTML user interface for WMTS cache manager, first step with landing page and collections page.

dmarteau commented 3 years ago

What is the functional purpose ? I do not see any advantage for just formating json into html.

dmarteau commented 3 years ago

AMHA, this should not rely on jquery (Whose usage should be considere as deprecated). Also avoid bootstrap if possible.

rldhont commented 3 years ago

Hi @dmarteau,

It is a first step to provide an HTML UI to WMTS Cache manager, the interesting pages, those containing the Delete buttons, have not been coding yet.

The purpose of this PR is mainly the apiutils.py updates to provide HTML pages with the QgsServerOgcApiHandler::write method.

The HTML templates are based on the QGIS WFS3 templates. These header and footer are the same except the leaflet part has been removed. I reused the QGIS templates to provide the same HTML User Interface and to get advantage of the static template method. This part can be modified later.

It is also a POC for QGIS Server tiles plugin and the OGC Tiles API implementation.

Can you review the changes made in apiutils.py ? Thanks