mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
prettier changes for lint
This commit is contained in:
Vendored
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user