Add file download ability
This commit is contained in:
+10
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user