Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
s27288-pj committed Jan 12, 2024
1 parent e994b94 commit 0230f86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Weather App</title>
<link rel="icon" href="images/001-meteorology.png" type="image/x-icon">
<link rel="stylesheet" href="styles.css" id="CSS-source">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="crossorigin=""/>
Expand Down
7 changes: 4 additions & 3 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ async function getTA2MapData(latitude, longitude) {
if (mapContainer && mapContainer._leaflet_id) {
mapContainer._leaflet_id = null;
}

mapContainer.innerHTML = '';

TA2Map = L.map('map-box-temperature', {dragging: false, scrollWheelZoom: false, touchZoom: false}).setView([latitude, longitude], 10);
const TA2Map = L.map('map-box-temperature', {dragging: false, scrollWheelZoom: false, touchZoom: false, doubleClickZoom: false}).setView([latitude, longitude], 10);

const mapLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
Expand All @@ -190,7 +191,7 @@ async function getPR0MapData(latitude, longitude) {

mapContainer.innerHTML = '';

PR0Map = L.map('map-box-precipitation', {dragging: false, scrollWheelZoom: false, touchZoom: false}).setView([latitude, longitude], 7);
const PR0Map = L.map('map-box-precipitation', {dragging: false, scrollWheelZoom: false, touchZoom: false, doubleClickZoom: false}).setView([latitude, longitude], 7);

const mapLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
Expand All @@ -216,7 +217,7 @@ async function getWNDMapData(latitude, longitude) {

mapContainer.innerHTML = '';

WNDMap = L.map('map-box-wind', {dragging: false, scrollWheelZoom: false, touchZoom: false}).setView([latitude, longitude], 10);
const WNDMap = L.map('map-box-wind', {dragging: false, scrollWheelZoom: false, touchZoom: false, doubleClickZoom: false}).setView([latitude, longitude], 10);

const mapLayer = L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 18,
Expand Down

0 comments on commit 0230f86

Please sign in to comment.