Skip to content

Commit

Permalink
Add attributionPrefix as dependency
Browse files Browse the repository at this point in the history
Signed-off-by: angatupyry <fierrofenix@gmail.com>
  • Loading branch information
Angatupyry committed Aug 30, 2023
1 parent 7ff84c6 commit d6cfd29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/dashboard/src/managers/resource-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface ResourceConfigurationsType {
pickupZones?: string[];
defaultZoom?: number;
defaultRobotZoom?: number;
attributionPrefix?: string;
}

export default class ResourceManager {
Expand All @@ -26,6 +27,7 @@ export default class ResourceManager {
pickupZones?: string[];
defaultZoom: number;
defaultRobotZoom: number;
attributionPrefix?: string;

/**
* Gets the default resource manager using the embedded resource file (aka "assets/resources/main.json").
Expand Down Expand Up @@ -62,6 +64,7 @@ export default class ResourceManager {
this.pickupZones = resources.pickupZones || [];
this.defaultZoom = resources.defaultZoom ?? 5;
this.defaultRobotZoom = resources.defaultRobotZoom ?? 6;
this.attributionPrefix = resources.attributionPrefix || 'OSRC-SG';
}
}

Expand Down

0 comments on commit d6cfd29

Please sign in to comment.