Zooming, dockerfile

pull/63/head
Maciej 2022-02-09 11:39:28 +01:00
rodzic 1b4c5ea2a3
commit e248824241
2 zmienionych plików z 12 dodań i 1 usunięć

7
dockerfile 100644
Wyświetl plik

@ -0,0 +1,7 @@
FROM python:3.10.2-slim-buster
WORKDIR /
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
EXPOSE 8888
CMD ["python", "-m", "http.server", "8888"]

Wyświetl plik

@ -32,6 +32,9 @@ var map = new maplibregl.Map({
],
'tileSize': 256,
'maxzoom': 19,
'paint': {
"raster-fade-duration": 100
}
//'attribution': `<span id="refresh-time"></span>dane © <a target="_top" rel="noopener" href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.`,
},
'aed-locations': {
@ -84,7 +87,8 @@ var map = new maplibregl.Map({
},
});
map.scrollZoom.setWheelZoomRate(1 / 100);
//map.scrollZoom.setWheelZoomRate(1 / 100);
map.scrollZoom.setWheelZoomRate(1);
// disable map rotation using right click + drag
map.dragRotate.disable();