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