prettier changes for lint

This commit is contained in:
Laura Kauria
2025-05-28 12:09:23 +03:00
parent f8149ee7e2
commit b095334fd3
2 changed files with 11 additions and 10 deletions
+3 -1
View File
@@ -6,5 +6,7 @@
"eslint.workingDirectories": [
{ "directory": "./frontend", "changeProcessCWD": true },
{ "directory": "./backend", "changeProcessCWD": true }
]
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
@@ -77,23 +77,22 @@ export const LocalitiesMap = ({ localitiesQueryData, localitiesQueryIsFetching }
L.polygon(poly as LatLngExpression[], { color: 'gray', weight: 1 }).addTo(map)
})
// create a polygon layer for the country borders that is in layer control panel
const borderLayer = L.layerGroup();
borders.forEach((country_border) => {
// create a polygon layer for the country borders that is in layer control panel
const borderLayer = L.layerGroup()
borders.forEach(country_border => {
const polygon = L.polygon(country_border, {
color: "#136f94",
color: '#136f94',
fillOpacity: 0.3,
weight: 1,
});
borderLayer.addLayer(polygon);
});
})
borderLayer.addLayer(polygon)
})
const baseMaps = {
OpenTopoMap: topomap,
OpenStreetMap: osm,
Countries: borderLayer,
};
}
// Add a scale bar to the map
L.control.scale({ position: 'bottomright' }).addTo(map)