Add file download ability

This commit is contained in:
zyphlar
2026-02-25 10:25:48 -08:00
parent 6e009db18c
commit 69818eecba
3 changed files with 49 additions and 5 deletions
+10 -2
View File
@@ -86,6 +86,11 @@ function osmStyle(feature) {
};
}
// const leafIcon = new L.icon({
// iconUrl: "https://docs.maptiler.com/sdk-js/examples/custom-points-icon-png/underground.png", //your custom pin
// iconSize: [24, 26],
// });
function diffStyle(feature) {
// Check if feature is accepted or rejected
if (acceptedFeatures.has(feature)) {
@@ -198,6 +203,9 @@ function createDiffLayer() {
diffLayer = L.geoJSON(diffData, {
style: diffStyle,
// pointToLayer: function (geoJsonPoint, latlng) {
// return L.marker(latlng, {icon: leafIcon});
// }
filter: shouldShowFeature,
pane: 'diffPane',
onEachFeature: function(feature, layer) {
@@ -473,9 +481,9 @@ async function loadFiles() {
diffFile = `latest/${county}/diff-paths.geojson`;
countyFile = `latest/${county}/county-paths.geojson`;
} else if (dataType === 'addresses') {
osmFile = null; // No OSM addresses file
osmFile = null; //`latest/${county}/addresses-existing.geojson`;
diffFile = `latest/${county}/addresses-to-add.geojson`;
countyFile = `latest/${county}/addresses-existing.geojson`;
countyFile = null;
}
// Load files from server