adb-shared 6.2.11 → 6.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/adb-shared.mjs +24 -23
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/adb-shared.mjs
CHANGED
|
@@ -3211,7 +3211,7 @@ class AdbObsMapComponent {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
ngAfterViewInit() {
|
|
3213
3213
|
this.map = AdbMapUtils.createMap(this.mapId, {
|
|
3214
|
-
zoom:
|
|
3214
|
+
zoom: true,
|
|
3215
3215
|
scrollZoom: false,
|
|
3216
3216
|
providers: true
|
|
3217
3217
|
});
|
|
@@ -3288,30 +3288,31 @@ class AdbObsMapComponent {
|
|
|
3288
3288
|
iconAnchor: [3, 3]
|
|
3289
3289
|
})
|
|
3290
3290
|
});
|
|
3291
|
-
if (feature.properties && feature.properties['Occurrence.OccurrenceId']) {
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
}
|
|
3291
|
+
// if (feature.properties && feature.properties['Occurrence.OccurrenceId']) {
|
|
3292
|
+
// marker.on('click', () => {
|
|
3293
|
+
// window.location.href = this.config.observationPage + '/' + feature.properties['Occurrence.OccurrenceId'];
|
|
3294
|
+
// });
|
|
3295
|
+
// }
|
|
3296
3296
|
return marker;
|
|
3297
3297
|
}, onEachFeature: (feature, layer) => {
|
|
3298
3298
|
if (feature.geometry.type === "Polygon" ||
|
|
3299
3299
|
feature.geometry.type === "MultiPolygon") {
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
}
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
}
|
|
3300
|
+
layer.setStyle({ interactive: false });
|
|
3301
|
+
// if (feature.properties.ObservationsCount > 0) {
|
|
3302
|
+
// layer.on('click', () => {
|
|
3303
|
+
// const boundBox = JSON.stringify(this.getMapBoundsToBbox(layer.getBounds()));
|
|
3304
|
+
// this.router.navigate([], { queryParams: { bbox: boundBox }, queryParamsHandling: 'merge' });
|
|
3305
|
+
// });
|
|
3306
|
+
// layer.on('mouseover', () => {
|
|
3307
|
+
// layer.setStyle({ className: 'svg cursor-pointer' });
|
|
3308
|
+
// });
|
|
3309
|
+
// layer.on('mouseout', () => {
|
|
3310
|
+
// layer.setStyle({ className: 'svg' });
|
|
3311
|
+
// });
|
|
3312
|
+
// }
|
|
3313
|
+
// if (feature.properties.FeatureType) { //area
|
|
3314
|
+
// layer.setStyle({ interactive: false });
|
|
3315
|
+
// }
|
|
3315
3316
|
}
|
|
3316
3317
|
}
|
|
3317
3318
|
});
|
|
@@ -3347,11 +3348,11 @@ class AdbObsMapComponent {
|
|
|
3347
3348
|
this.subscriptions.unsubscribe();
|
|
3348
3349
|
}
|
|
3349
3350
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AdbObsMapComponent, deps: [{ token: i1.ActivatedRoute }, { token: AdbMapConfigService }, { token: i1.Router }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3350
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AdbObsMapComponent, isStandalone: false, selector: "adb-obs-map", ngImport: i0, template: "@if(hasBox&&!mapLoading()){\r\n<div class=\"mb-1 d-flex justify-content-between flex-wrap\">\r\n <a [routerLink]=\"[]\" [queryParams]=\"{bbox:null,z:null}\" queryParamsHandling=\"merge\" class=\"d-flex gap-1 align-items-baseline\">\r\n <span class=\"fas fa-chevron-left\"></span>\r\n Tillbaka upp\r\n </a>\r\n</div>\r\n}
|
|
3351
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.3", type: AdbObsMapComponent, isStandalone: false, selector: "adb-obs-map", ngImport: i0, template: "<!-- @if(hasBox&&!mapLoading()){\r\n<div class=\"mb-1 d-flex justify-content-between flex-wrap\">\r\n <a [routerLink]=\"[]\" [queryParams]=\"{bbox:null,z:null}\" queryParamsHandling=\"merge\" class=\"d-flex gap-1 align-items-baseline\">\r\n <span class=\"fas fa-chevron-left\"></span>\r\n Tillbaka upp\r\n </a>\r\n</div>\r\n} -->\r\n@if(error){\r\n<div class=\"alert alert-danger\">\r\n {{'ERROR.SERVER_ERROR'|translate}}\r\n</div>\r\n}\r\n<div [class.loading]=\"mapLoading()\">\r\n <div [id]=\"mapId\" class=\"mb-1 map-container\"></div>\r\n</div>\r\n<div class=\"mb-1 d-flex gap-3 justify-content-between flex-wrap\">\r\n @if (!mapLoading()&&count) {\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-low\"></div>\r\n <10\r\n </div>\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-medium\"></div>\r\n 10 - 500\r\n </div>\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-high\"></div>\r\n >500\r\n </div>\r\n <div class=\"ms-auto\">\r\n {{count|adbSpacing}} {{'OBSERVATION.OBSERVATIONS'|translate}}\r\n </div>\r\n }\r\n</div>", dependencies: [{ kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: NumberSpacingPipe, name: "adbSpacing" }] }); }
|
|
3351
3352
|
}
|
|
3352
3353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: AdbObsMapComponent, decorators: [{
|
|
3353
3354
|
type: Component,
|
|
3354
|
-
args: [{ selector: 'adb-obs-map', standalone: false, template: "@if(hasBox&&!mapLoading()){\r\n<div class=\"mb-1 d-flex justify-content-between flex-wrap\">\r\n <a [routerLink]=\"[]\" [queryParams]=\"{bbox:null,z:null}\" queryParamsHandling=\"merge\" class=\"d-flex gap-1 align-items-baseline\">\r\n <span class=\"fas fa-chevron-left\"></span>\r\n Tillbaka upp\r\n </a>\r\n</div>\r\n}
|
|
3355
|
+
args: [{ selector: 'adb-obs-map', standalone: false, template: "<!-- @if(hasBox&&!mapLoading()){\r\n<div class=\"mb-1 d-flex justify-content-between flex-wrap\">\r\n <a [routerLink]=\"[]\" [queryParams]=\"{bbox:null,z:null}\" queryParamsHandling=\"merge\" class=\"d-flex gap-1 align-items-baseline\">\r\n <span class=\"fas fa-chevron-left\"></span>\r\n Tillbaka upp\r\n </a>\r\n</div>\r\n} -->\r\n@if(error){\r\n<div class=\"alert alert-danger\">\r\n {{'ERROR.SERVER_ERROR'|translate}}\r\n</div>\r\n}\r\n<div [class.loading]=\"mapLoading()\">\r\n <div [id]=\"mapId\" class=\"mb-1 map-container\"></div>\r\n</div>\r\n<div class=\"mb-1 d-flex gap-3 justify-content-between flex-wrap\">\r\n @if (!mapLoading()&&count) {\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-low\"></div>\r\n <10\r\n </div>\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-medium\"></div>\r\n 10 - 500\r\n </div>\r\n <div class=\"d-flex align-items-center gap-1\">\r\n <div class=\"legend map-heat-high\"></div>\r\n >500\r\n </div>\r\n <div class=\"ms-auto\">\r\n {{count|adbSpacing}} {{'OBSERVATION.OBSERVATIONS'|translate}}\r\n </div>\r\n }\r\n</div>" }]
|
|
3355
3356
|
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: AdbMapConfigService }, { type: i1.Router }, { type: i1$2.HttpClient }] });
|
|
3356
3357
|
|
|
3357
3358
|
class AdbMapFilters {
|