Skip to content

Commit

Permalink
Style and filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
panaaj committed Jul 24, 2024
1 parent 41b1b11 commit f1525db
Show file tree
Hide file tree
Showing 17 changed files with 863 additions and 536 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

### v2.10.0

- **Added**: Option to filter out vessels without an IMO registration (#174).
- **Updated**: Compass widget in Weather Station popover (#173).
- **Updated**: Add waypoint styles to routes (#168).
- **Updated**: S57 chart styles (@wdantuma).
- **Updated**: Angular framework to v18 & Material 3

Expand Down
5 changes: 4 additions & 1 deletion src/app/lib/components/dialogs/common/dialogs.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,10 @@ export class MessageBarComponent {
<div style="text-align:center;font-size:10pt;font-family:roboto;">
@for(c of data.content; track c; let i = $index) {
<mat-icon
[ngClass] = "{'step-current': currentPage - 1 === i, 'step-other': currentPage - 1 !== i}"
[ngClass]="{
'step-current': currentPage - 1 === i,
'step-other': currentPage - 1 !== i
}"
style="font-size:8pt;width:12px;"
>
fiber_manual_record
Expand Down
35 changes: 21 additions & 14 deletions src/app/modules/map/mapconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,20 +67,7 @@ export const vesselStyles = {
})
};

export const routeStyles = {
default: new Style({
stroke: new Stroke({
color: 'green',
width: 2,
lineDash: [20, 5, 5, 5]
})
}),
active: new Style({
stroke: new Stroke({
color: 'blue',
width: 4
})
}),
export const raceCourseStyles = {
startPin: new Style({
image: new Icon({
src: './assets/img/startflag.png',
Expand Down Expand Up @@ -147,6 +134,26 @@ export const routeStyles = {
})
};

export const routeStyles = {
default: new Style({
stroke: new Stroke({
color: 'green',
width: 2,
lineDash: [20, 5, 5, 5]
}),
text: new Text({
text: '',
offsetY: 10
})
}),
active: new Style({
stroke: new Stroke({
color: 'blue',
width: 4
})
})
};

export const waypointStyles = {
default: new Style({
image: new Icon({
Expand Down
Loading

0 comments on commit f1525db

Please sign in to comment.