nestjs rewrite

This commit is contained in:
popovspiridon99
2025-08-01 11:08:33 +09:00
parent 1f9a3a8e03
commit 145827ab6d
28 changed files with 1220 additions and 623 deletions

View File

@ -235,7 +235,7 @@ export const initializeMapState = (
const printAreaDraw = new Draw({
source: printSource,
type: 'Circle',
style: (feature) => {
style: () => {
return new Style({
fill: new Fill({
color: "rgba(0, 0, 255, 0.3)", // Semi-transparent blue fill
@ -331,12 +331,13 @@ export const initializeMapState = (
if (pixel) {
map?.forEachFeatureAtPixel(pixel, function (feature, layer) {
if (layer.get('type') === 'region') {
console.log("clicked on region")
zoomToFeature(id, feature as Feature)
if (layer) {
if (layer.get('type') === 'region') {
zoomToFeature(id, feature as Feature)
if (feature.get('entity_id')) {
setSelectedRegion(id, feature.get('entity_id'))
if (feature.get('entity_id')) {
setSelectedRegion(id, feature.get('entity_id'))
}
}
}
})