From 08a16874c94df9d3b81bd37fe6cfc384051a801b Mon Sep 17 00:00:00 2001 From: Goinging <146245761+Goinging@users.noreply.github.com> Date: Mon, 20 Nov 2023 22:53:37 -0800 Subject: [PATCH] all --- css/style.css | 1 - index.html | 17 +++++++++-------- js/main.js | 17 +++++++++-------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/css/style.css b/css/style.css index ba570fc..389fb59 100644 --- a/css/style.css +++ b/css/style.css @@ -1,7 +1,6 @@ /* Stylesheet by Ian H Freel, 2023 */ #map {width:620px; height:620px;} .center { - border: 3px solid; margin: auto; width: 50%; padding: 10px; diff --git a/index.html b/index.html index 28ee9c7..3be5eaf 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,8 @@ - - + + @@ -15,16 +15,17 @@

Minecraft vs Real Life Maps

-
- -
- + +



- +



+
+ +
- + \ No newline at end of file diff --git a/js/main.js b/js/main.js index e25e3c6..976a911 100644 --- a/js/main.js +++ b/js/main.js @@ -1,4 +1,5 @@ const map = L.map("map", { + zoomControl: false, minZoom: 14, maxZoom: 15 }); @@ -17,33 +18,33 @@ fetch('data/classified.geojson') if (feature.properties.Class_name === 'Tree/Leaves') { popupContent = `

Leaves

- +
`; } else if (feature.properties.Class_name === 'Pumpkins') { popupContent = `

Pumpkin

- +
`; } else if (feature.properties.Class_name === 'Grass Block') { popupContent = `

Grass Block

- +
`; } else if (feature.properties.Class_name === 'Sand') { popupContent = `

Sand

- +
`; } else if (feature.properties.Class_name === 'Stone/Gravel') { popupContent = ``; } else if (feature.properties.Class_name === 'Water') { popupContent = `

Water

- +
`; } currentLayer = layer; @@ -71,4 +72,4 @@ fetch('data/classified.geojson') return { color: 'transparent', fillColor: 'transparent' }; } }).addTo(map); -}); +}); \ No newline at end of file