Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(map-overlay): missing property for MapOverlay Interface #1114

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/app/pages/portal/map-overlay/map-overlay.enum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export enum MapOverlayCssClass {
TopLeft = 'top-left',
CenterLeft = 'center-left',
BottomLeft = 'bottom-left',
TopCenter = 'top-center',
CenterCenter = 'center-center',
BottomCenter = 'bottom-center',
TopRight = 'top-right',
CenterRight = 'center-right',
BottoMRight = 'bottom-right'
}
29 changes: 13 additions & 16 deletions src/app/pages/portal/map-overlay/map-overlay.interface.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { Media } from '@igo2/core';

import { MapOverlayCssClass } from './map-overlay.enum';

export interface MapOverlay {
media: Array<string> /* Media device to display the mapOverlay
- options: mobile
tablet
desktop
- default: desktop
cssClass: string; /* Css class to define position of the element
- options: top-left
center-left
bottom-left
top-center
center-center
bottom-center
top-right
center-right
bottom-right
*/;
/**
* Media device to display the mapOverlay
* Desktop is the default value.
*/
media: Array<Media>;
/**
* Css class to define position of the element
*/
cssClass: MapOverlayCssClass;
fixed?: boolean; // Is element is fixed, won't be affect by animation, default to false
link?: string; // Link to open when element is clicked
imgSrc?: string; // source of the image to show
Expand Down