From e4925f8e1848eaef62338f46ac7a9657756c4519 Mon Sep 17 00:00:00 2001 From: Goinging <146245761+Goinging@users.noreply.github.com> Date: Sun, 19 Nov 2023 14:06:16 -0800 Subject: [PATCH] Update main.js --- js/main.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/js/main.js b/js/main.js index 428ed51..caa0f2f 100644 --- a/js/main.js +++ b/js/main.js @@ -17,33 +17,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 +71,4 @@ fetch('data/classified.geojson') return { color: 'transparent', fillColor: 'transparent' }; } }).addTo(map); -}); \ No newline at end of file +});