3 Commits

Author SHA1 Message Date
jenkins
0ff8992874 [ci skip] Updated packages #2585
Some checks reported errors
FarmMaps.Develop/FarmMapsLib/pipeline/head Something is wrong with the build of this commit
2025-11-13 12:46:51 +00:00
b5b84c2547 Merge branch 'develop' of https://git.akkerweb.nl/FarmMaps/FarmMapsLib into develop
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
2025-11-13 13:43:49 +01:00
c2b016b2b9 AW-7096 Fix 2025-11-13 13:43:44 +01:00
3 changed files with 12 additions and 10 deletions

8
package-lock.json generated
View File

@@ -90,7 +90,7 @@
}, },
"dist/common": { "dist/common": {
"name": "@farmmaps/common", "name": "@farmmaps/common",
"version": "4.19.0-prerelease.2583", "version": "4.19.0-prerelease.2584",
"dependencies": { "dependencies": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
}, },
@@ -115,7 +115,7 @@
}, },
"dist/common-map": { "dist/common-map": {
"name": "@farmmaps/common-map", "name": "@farmmaps/common-map",
"version": "4.19.0-prerelease.2583", "version": "4.19.0-prerelease.2584",
"dependencies": { "dependencies": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
}, },
@@ -130,7 +130,7 @@
}, },
"dist/common-map3d": { "dist/common-map3d": {
"name": "@farmmaps/common-map3d", "name": "@farmmaps/common-map3d",
"version": "4.19.0-prerelease.2583", "version": "4.19.0-prerelease.2584",
"dependencies": { "dependencies": {
"tslib": "^2.0.0" "tslib": "^2.0.0"
}, },
@@ -143,7 +143,7 @@
}, },
"dist/ng-openlayers": { "dist/ng-openlayers": {
"name": "@farmmaps/ng-openlayers", "name": "@farmmaps/ng-openlayers",
"version": "4.19.0-prerelease.2583", "version": "4.19.0-prerelease.2584",
"license": "MPL-2.0", "license": "MPL-2.0",
"dependencies": { "dependencies": {
"tslib": "^2.3.0" "tslib": "^2.3.0"

View File

@@ -302,7 +302,7 @@ export class SetReplaceUrl implements Action {
export class SetFeatures implements Action { export class SetFeatures implements Action {
readonly type = SETFEATURES; readonly type = SETFEATURES;
constructor(public features: Array<Feature<Geometry>>) { } constructor(public features: Array<Feature<Geometry>>, public zoomToExtent: boolean = true) { }
} }
export class SetLayerValuesLocation implements Action { export class SetLayerValuesLocation implements Action {

View File

@@ -166,12 +166,14 @@ export class MapEffects {
zoomToExtent2$ = createEffect(() => this.actions$.pipe( zoomToExtent2$ = createEffect(() => this.actions$.pipe(
ofType(mapActions.SETFEATURES), ofType(mapActions.SETFEATURES),
switchMap((action: mapActions.SetFeatures) => { switchMap((action: mapActions.SetFeatures) => {
const extent = createEmpty(); if (action.zoomToExtent) {
if (extent) { const extent = createEmpty();
for (const f of action.features) { if (extent) {
extend(extent, (f as Feature<Geometry>).getGeometry().getExtent()); for (const f of action.features) {
extend(extent, (f as Feature<Geometry>).getGeometry().getExtent());
}
if (action.features.length > 0) return of(new mapActions.SetExtent(extent));
} }
if (action.features.length > 0) return of(new mapActions.SetExtent(extent));
} }
return EMPTY; return EMPTY;
}))); })));