From a814c0306ad93d8f9587604331185f2a85498367 Mon Sep 17 00:00:00 2001 From: Mikael Wikstrom Date: Tue, 27 Sep 2022 16:03:13 +0200 Subject: [PATCH] upgrade leaflet from v1.7.1 to v1.8.0 (#315) Leaflet 1.8.0 Stable version, released on April 18, 2022. Leaflet 1.7.1 Previous stable version, released on September 3, 2020. install leaflet localy so server works offline Co-authored-by: galewis2 <62433564+galewis2@users.noreply.github.com> --- Dockerfile | 8 +++++++- leaflet-demo.html | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c28cc28..2df9201 100644 --- a/Dockerfile +++ b/Dockerfile @@ -102,10 +102,16 @@ RUN echo "LoadModule tile_module /usr/lib/apache2/modules/mod_tile.so" >> /etc/a && echo "LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so" >> /etc/apache2/conf-available/mod_headers.conf \ && a2enconf mod_tile && a2enconf mod_headers COPY apache.conf /etc/apache2/sites-available/000-default.conf -COPY leaflet-demo.html /var/www/html/index.html RUN ln -sf /dev/stdout /var/log/apache2/access.log \ && ln -sf /dev/stderr /var/log/apache2/error.log +# leaflet +COPY leaflet-demo.html /var/www/html/index.html +RUN cd /var/www/html/ \ +&& wget https://github.com/Leaflet/Leaflet/releases/download/v1.8.0/leaflet.zip \ +&& unzip leaflet.zip \ +&& rm leaflet.zip + # Icon RUN wget -O /var/www/html/favicon.ico https://www.openstreetmap.org/favicon.ico diff --git a/leaflet-demo.html b/leaflet-demo.html index d354dc0..f9714eb 100644 --- a/leaflet-demo.html +++ b/leaflet-demo.html @@ -6,8 +6,8 @@ - - + +