kopia lustrzana https://github.com/jprochazka/adsb-receiver
				
				
				
			Added Angular and map component.
							rodzic
							
								
									b0a155610b
								
							
						
					
					
						commit
						eb2314475e
					
				| 
						 | 
					@ -0,0 +1,16 @@
 | 
				
			||||||
 | 
					# Editor configuration, see https://editorconfig.org
 | 
				
			||||||
 | 
					root = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[*]
 | 
				
			||||||
 | 
					charset = utf-8
 | 
				
			||||||
 | 
					indent_style = space
 | 
				
			||||||
 | 
					indent_size = 2
 | 
				
			||||||
 | 
					insert_final_newline = true
 | 
				
			||||||
 | 
					trim_trailing_whitespace = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[*.ts]
 | 
				
			||||||
 | 
					quote_type = single
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[*.md]
 | 
				
			||||||
 | 
					max_line_length = off
 | 
				
			||||||
 | 
					trim_trailing_whitespace = false
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,42 @@
 | 
				
			||||||
 | 
					# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Compiled output
 | 
				
			||||||
 | 
					/dist
 | 
				
			||||||
 | 
					/tmp
 | 
				
			||||||
 | 
					/out-tsc
 | 
				
			||||||
 | 
					/bazel-out
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Node
 | 
				
			||||||
 | 
					/node_modules
 | 
				
			||||||
 | 
					npm-debug.log
 | 
				
			||||||
 | 
					yarn-error.log
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# IDEs and editors
 | 
				
			||||||
 | 
					.idea/
 | 
				
			||||||
 | 
					.project
 | 
				
			||||||
 | 
					.classpath
 | 
				
			||||||
 | 
					.c9/
 | 
				
			||||||
 | 
					*.launch
 | 
				
			||||||
 | 
					.settings/
 | 
				
			||||||
 | 
					*.sublime-workspace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Visual Studio Code
 | 
				
			||||||
 | 
					.vscode/*
 | 
				
			||||||
 | 
					!.vscode/settings.json
 | 
				
			||||||
 | 
					!.vscode/tasks.json
 | 
				
			||||||
 | 
					!.vscode/launch.json
 | 
				
			||||||
 | 
					!.vscode/extensions.json
 | 
				
			||||||
 | 
					.history/*
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Miscellaneous
 | 
				
			||||||
 | 
					/.angular/cache
 | 
				
			||||||
 | 
					.sass-cache/
 | 
				
			||||||
 | 
					/connect.lock
 | 
				
			||||||
 | 
					/coverage
 | 
				
			||||||
 | 
					/libpeerconnection.log
 | 
				
			||||||
 | 
					testem.log
 | 
				
			||||||
 | 
					/typings
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# System files
 | 
				
			||||||
 | 
					.DS_Store
 | 
				
			||||||
 | 
					Thumbs.db
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
 | 
				
			||||||
 | 
					  "recommendations": ["angular.ng-template"]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,20 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
 | 
				
			||||||
 | 
					  "version": "0.2.0",
 | 
				
			||||||
 | 
					  "configurations": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "name": "ng serve",
 | 
				
			||||||
 | 
					      "type": "chrome",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "preLaunchTask": "npm: start",
 | 
				
			||||||
 | 
					      "url": "http://localhost:4200/"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "name": "ng test",
 | 
				
			||||||
 | 
					      "type": "chrome",
 | 
				
			||||||
 | 
					      "request": "launch",
 | 
				
			||||||
 | 
					      "preLaunchTask": "npm: test",
 | 
				
			||||||
 | 
					      "url": "http://localhost:9876/debug.html"
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,42 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  // For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
 | 
				
			||||||
 | 
					  "version": "2.0.0",
 | 
				
			||||||
 | 
					  "tasks": [
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "type": "npm",
 | 
				
			||||||
 | 
					      "script": "start",
 | 
				
			||||||
 | 
					      "isBackground": true,
 | 
				
			||||||
 | 
					      "problemMatcher": {
 | 
				
			||||||
 | 
					        "owner": "typescript",
 | 
				
			||||||
 | 
					        "pattern": "$tsc",
 | 
				
			||||||
 | 
					        "background": {
 | 
				
			||||||
 | 
					          "activeOnStart": true,
 | 
				
			||||||
 | 
					          "beginsPattern": {
 | 
				
			||||||
 | 
					            "regexp": "(.*?)"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "endsPattern": {
 | 
				
			||||||
 | 
					            "regexp": "bundle generation complete"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "type": "npm",
 | 
				
			||||||
 | 
					      "script": "test",
 | 
				
			||||||
 | 
					      "isBackground": true,
 | 
				
			||||||
 | 
					      "problemMatcher": {
 | 
				
			||||||
 | 
					        "owner": "typescript",
 | 
				
			||||||
 | 
					        "pattern": "$tsc",
 | 
				
			||||||
 | 
					        "background": {
 | 
				
			||||||
 | 
					          "activeOnStart": true,
 | 
				
			||||||
 | 
					          "beginsPattern": {
 | 
				
			||||||
 | 
					            "regexp": "(.*?)"
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "endsPattern": {
 | 
				
			||||||
 | 
					            "regexp": "bundle generation complete"
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,27 @@
 | 
				
			||||||
 | 
					# Frontend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.0.6.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Development server
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Code scaffolding
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Running unit tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Running end-to-end tests
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Further help
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,106 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
 | 
				
			||||||
 | 
					  "version": 1,
 | 
				
			||||||
 | 
					  "newProjectRoot": "projects",
 | 
				
			||||||
 | 
					  "projects": {
 | 
				
			||||||
 | 
					    "frontend": {
 | 
				
			||||||
 | 
					      "projectType": "application",
 | 
				
			||||||
 | 
					      "schematics": {
 | 
				
			||||||
 | 
					        "@schematics/angular:component": {
 | 
				
			||||||
 | 
					          "style": "scss"
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      },
 | 
				
			||||||
 | 
					      "root": "",
 | 
				
			||||||
 | 
					      "sourceRoot": "src",
 | 
				
			||||||
 | 
					      "prefix": "app",
 | 
				
			||||||
 | 
					      "architect": {
 | 
				
			||||||
 | 
					        "build": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:application",
 | 
				
			||||||
 | 
					          "options": {
 | 
				
			||||||
 | 
					            "outputPath": "dist/frontend",
 | 
				
			||||||
 | 
					            "index": "src/index.html",
 | 
				
			||||||
 | 
					            "browser": "src/main.ts",
 | 
				
			||||||
 | 
					            "polyfills": [
 | 
				
			||||||
 | 
					              "zone.js",
 | 
				
			||||||
 | 
					              "@angular/localize/init"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "tsConfig": "tsconfig.app.json",
 | 
				
			||||||
 | 
					            "inlineStyleLanguage": "scss",
 | 
				
			||||||
 | 
					            "assets": [
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                "glob": "**/*",
 | 
				
			||||||
 | 
					                "input": "public"
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "styles": [
 | 
				
			||||||
 | 
					              "src/styles.scss",
 | 
				
			||||||
 | 
					              "node_modules/ol/ol.css"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "scripts": []
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "configurations": {
 | 
				
			||||||
 | 
					            "production": {
 | 
				
			||||||
 | 
					              "budgets": [
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "initial",
 | 
				
			||||||
 | 
					                  "maximumWarning": "500kB",
 | 
				
			||||||
 | 
					                  "maximumError": "1MB"
 | 
				
			||||||
 | 
					                },
 | 
				
			||||||
 | 
					                {
 | 
				
			||||||
 | 
					                  "type": "anyComponentStyle",
 | 
				
			||||||
 | 
					                  "maximumWarning": "2kB",
 | 
				
			||||||
 | 
					                  "maximumError": "4kB"
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					              ],
 | 
				
			||||||
 | 
					              "outputHashing": "all"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "development": {
 | 
				
			||||||
 | 
					              "optimization": false,
 | 
				
			||||||
 | 
					              "extractLicenses": false,
 | 
				
			||||||
 | 
					              "sourceMap": true
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "defaultConfiguration": "production"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "serve": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:dev-server",
 | 
				
			||||||
 | 
					          "configurations": {
 | 
				
			||||||
 | 
					            "production": {
 | 
				
			||||||
 | 
					              "buildTarget": "frontend:build:production"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            "development": {
 | 
				
			||||||
 | 
					              "buildTarget": "frontend:build:development"
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          "defaultConfiguration": "development"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "extract-i18n": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:extract-i18n"
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        "test": {
 | 
				
			||||||
 | 
					          "builder": "@angular-devkit/build-angular:karma",
 | 
				
			||||||
 | 
					          "options": {
 | 
				
			||||||
 | 
					            "polyfills": [
 | 
				
			||||||
 | 
					              "zone.js",
 | 
				
			||||||
 | 
					              "zone.js/testing",
 | 
				
			||||||
 | 
					              "@angular/localize/init"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "tsConfig": "tsconfig.spec.json",
 | 
				
			||||||
 | 
					            "inlineStyleLanguage": "scss",
 | 
				
			||||||
 | 
					            "assets": [
 | 
				
			||||||
 | 
					              {
 | 
				
			||||||
 | 
					                "glob": "**/*",
 | 
				
			||||||
 | 
					                "input": "public"
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "styles": [
 | 
				
			||||||
 | 
					              "src/styles.scss",
 | 
				
			||||||
 | 
					              "node_modules/ol/ol.css"
 | 
				
			||||||
 | 
					            ],
 | 
				
			||||||
 | 
					            "scripts": []
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
										
											
												Plik diff jest za duży
												Load Diff
											
										
									
								
							| 
						 | 
					@ -0,0 +1,43 @@
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "name": "frontend",
 | 
				
			||||||
 | 
					  "version": "0.0.0",
 | 
				
			||||||
 | 
					  "scripts": {
 | 
				
			||||||
 | 
					    "ng": "ng",
 | 
				
			||||||
 | 
					    "start": "ng serve",
 | 
				
			||||||
 | 
					    "build": "ng build",
 | 
				
			||||||
 | 
					    "watch": "ng build --watch --configuration development",
 | 
				
			||||||
 | 
					    "test": "ng test"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "private": true,
 | 
				
			||||||
 | 
					  "dependencies": {
 | 
				
			||||||
 | 
					    "@angular/animations": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/common": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/compiler": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/core": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/forms": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/platform-browser": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/platform-browser-dynamic": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/router": "^18.0.0",
 | 
				
			||||||
 | 
					    "@ng-bootstrap/ng-bootstrap": "^17.0.0",
 | 
				
			||||||
 | 
					    "@popperjs/core": "^2.11.8",
 | 
				
			||||||
 | 
					    "bootstrap": "^5.3.2",
 | 
				
			||||||
 | 
					    "ol": "^9.2.4",
 | 
				
			||||||
 | 
					    "rxjs": "~7.8.0",
 | 
				
			||||||
 | 
					    "tslib": "^2.3.0",
 | 
				
			||||||
 | 
					    "zone.js": "~0.14.3"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "devDependencies": {
 | 
				
			||||||
 | 
					    "@angular-devkit/build-angular": "^18.0.6",
 | 
				
			||||||
 | 
					    "@angular/cli": "^18.0.6",
 | 
				
			||||||
 | 
					    "@angular/compiler-cli": "^18.0.0",
 | 
				
			||||||
 | 
					    "@angular/localize": "^18.0.0",
 | 
				
			||||||
 | 
					    "@types/jasmine": "~5.1.0",
 | 
				
			||||||
 | 
					    "jasmine-core": "~5.1.0",
 | 
				
			||||||
 | 
					    "karma": "~6.4.0",
 | 
				
			||||||
 | 
					    "karma-chrome-launcher": "~3.2.0",
 | 
				
			||||||
 | 
					    "karma-coverage": "~2.2.0",
 | 
				
			||||||
 | 
					    "karma-jasmine": "~5.1.0",
 | 
				
			||||||
 | 
					    "karma-jasmine-html-reporter": "~2.1.0",
 | 
				
			||||||
 | 
					    "typescript": "~5.4.2"
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
										
											Plik binarny nie jest wyświetlany.
										
									
								
							| 
		 Po Szerokość: | Wysokość: | Rozmiar: 15 KiB  | 
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					<router-outlet>
 | 
				
			||||||
 | 
					    <app-map></app-map>
 | 
				
			||||||
 | 
					</router-outlet>
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,29 @@
 | 
				
			||||||
 | 
					import { TestBed } from '@angular/core/testing';
 | 
				
			||||||
 | 
					import { AppComponent } from './app.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					describe('AppComponent', () => {
 | 
				
			||||||
 | 
					  beforeEach(async () => {
 | 
				
			||||||
 | 
					    await TestBed.configureTestingModule({
 | 
				
			||||||
 | 
					      imports: [AppComponent],
 | 
				
			||||||
 | 
					    }).compileComponents();
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  it('should create the app', () => {
 | 
				
			||||||
 | 
					    const fixture = TestBed.createComponent(AppComponent);
 | 
				
			||||||
 | 
					    const app = fixture.componentInstance;
 | 
				
			||||||
 | 
					    expect(app).toBeTruthy();
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  it(`should have the 'frontend' title`, () => {
 | 
				
			||||||
 | 
					    const fixture = TestBed.createComponent(AppComponent);
 | 
				
			||||||
 | 
					    const app = fixture.componentInstance;
 | 
				
			||||||
 | 
					    expect(app.title).toEqual('frontend');
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  it('should render title', () => {
 | 
				
			||||||
 | 
					    const fixture = TestBed.createComponent(AppComponent);
 | 
				
			||||||
 | 
					    fixture.detectChanges();
 | 
				
			||||||
 | 
					    const compiled = fixture.nativeElement as HTMLElement;
 | 
				
			||||||
 | 
					    expect(compiled.querySelector('h1')?.textContent).toContain('Hello, frontend');
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					import { Component } from '@angular/core';
 | 
				
			||||||
 | 
					import { RouterOutlet } from '@angular/router';
 | 
				
			||||||
 | 
					import { MapComponent } from './map/map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'app-root',
 | 
				
			||||||
 | 
					  standalone: true,
 | 
				
			||||||
 | 
					  imports: [RouterOutlet, MapComponent],
 | 
				
			||||||
 | 
					  templateUrl: './app.component.html',
 | 
				
			||||||
 | 
					  styleUrl: './app.component.scss'
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class AppComponent {
 | 
				
			||||||
 | 
					  title = 'frontend';
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
 | 
				
			||||||
 | 
					import { provideRouter } from '@angular/router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { routes } from './app.routes';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const appConfig: ApplicationConfig = {
 | 
				
			||||||
 | 
					  providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)]
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					import { Routes } from '@angular/router';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export const routes: Routes = [];
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					<div id="map" class="map"></div>
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,7 @@
 | 
				
			||||||
 | 
					#map {
 | 
				
			||||||
 | 
					  position: fixed;
 | 
				
			||||||
 | 
					  top: 0;
 | 
				
			||||||
 | 
					  left: 0;
 | 
				
			||||||
 | 
					  bottom: 0;
 | 
				
			||||||
 | 
					  right: 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,23 @@
 | 
				
			||||||
 | 
					import { ComponentFixture, TestBed } from '@angular/core/testing';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { MapComponent } from './map.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					describe('MapComponent', () => {
 | 
				
			||||||
 | 
					  let component: MapComponent;
 | 
				
			||||||
 | 
					  let fixture: ComponentFixture<MapComponent>;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  beforeEach(async () => {
 | 
				
			||||||
 | 
					    await TestBed.configureTestingModule({
 | 
				
			||||||
 | 
					      imports: [MapComponent]
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
 | 
					    .compileComponents();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    fixture = TestBed.createComponent(MapComponent);
 | 
				
			||||||
 | 
					    component = fixture.componentInstance;
 | 
				
			||||||
 | 
					    fixture.detectChanges();
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  it('should create', () => {
 | 
				
			||||||
 | 
					    expect(component).toBeTruthy();
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,33 @@
 | 
				
			||||||
 | 
					import { Component, OnInit } from '@angular/core';
 | 
				
			||||||
 | 
					import 'ol/ol.css';
 | 
				
			||||||
 | 
					import Map from 'ol/Map';
 | 
				
			||||||
 | 
					import View from 'ol/View';
 | 
				
			||||||
 | 
					import { OSM } from 'ol/source';
 | 
				
			||||||
 | 
					import TileLayer from 'ol/layer/Tile';
 | 
				
			||||||
 | 
					import {fromLonLat} from 'ol/proj.js';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@Component({
 | 
				
			||||||
 | 
					  selector: 'app-map',
 | 
				
			||||||
 | 
					  standalone: true,
 | 
				
			||||||
 | 
					  imports: [],
 | 
				
			||||||
 | 
					  templateUrl: './map.component.html',
 | 
				
			||||||
 | 
					  styleUrl: './map.component.scss'
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					export class MapComponent implements OnInit {
 | 
				
			||||||
 | 
					  public map!: Map
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  ngOnInit(): void {
 | 
				
			||||||
 | 
					    this.map = new Map({
 | 
				
			||||||
 | 
					    layers: [
 | 
				
			||||||
 | 
					      new TileLayer({
 | 
				
			||||||
 | 
					        source: new OSM(),
 | 
				
			||||||
 | 
					      }),
 | 
				
			||||||
 | 
					    ],
 | 
				
			||||||
 | 
					    target: 'map',
 | 
				
			||||||
 | 
					    view: new View({ 
 | 
				
			||||||
 | 
					      center: fromLonLat([-82.082750, 41.379850]),
 | 
				
			||||||
 | 
					      zoom: 7,maxZoom: 18, 
 | 
				
			||||||
 | 
					    }),
 | 
				
			||||||
 | 
					  });
 | 
				
			||||||
 | 
					 }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,13 @@
 | 
				
			||||||
 | 
					<!doctype html>
 | 
				
			||||||
 | 
					<html lang="en">
 | 
				
			||||||
 | 
					<head>
 | 
				
			||||||
 | 
					  <meta charset="utf-8">
 | 
				
			||||||
 | 
					  <title>Frontend</title>
 | 
				
			||||||
 | 
					  <base href="/">
 | 
				
			||||||
 | 
					  <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
				
			||||||
 | 
					  <link rel="icon" type="image/x-icon" href="favicon.ico">
 | 
				
			||||||
 | 
					</head>
 | 
				
			||||||
 | 
					<body>
 | 
				
			||||||
 | 
					  <app-root></app-root>
 | 
				
			||||||
 | 
					</body>
 | 
				
			||||||
 | 
					</html>
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					/// <reference types="@angular/localize" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import { bootstrapApplication } from '@angular/platform-browser';
 | 
				
			||||||
 | 
					import { appConfig } from './app/app.config';
 | 
				
			||||||
 | 
					import { AppComponent } from './app/app.component';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bootstrapApplication(AppComponent, appConfig)
 | 
				
			||||||
 | 
					  .catch((err) => console.error(err));
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					/* You can add global styles to this file, and also import other style files */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* Importing Bootstrap SCSS file. */
 | 
				
			||||||
 | 
					@import 'bootstrap/scss/bootstrap';
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,17 @@
 | 
				
			||||||
 | 
					/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
 | 
				
			||||||
 | 
					/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "extends": "./tsconfig.json",
 | 
				
			||||||
 | 
					  "compilerOptions": {
 | 
				
			||||||
 | 
					    "outDir": "./out-tsc/app",
 | 
				
			||||||
 | 
					    "types": [
 | 
				
			||||||
 | 
					      "@angular/localize"
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "files": [
 | 
				
			||||||
 | 
					    "src/main.ts"
 | 
				
			||||||
 | 
					  ],
 | 
				
			||||||
 | 
					  "include": [
 | 
				
			||||||
 | 
					    "src/**/*.d.ts"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,33 @@
 | 
				
			||||||
 | 
					/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
 | 
				
			||||||
 | 
					/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "compileOnSave": false,
 | 
				
			||||||
 | 
					  "compilerOptions": {
 | 
				
			||||||
 | 
					    "outDir": "./dist/out-tsc",
 | 
				
			||||||
 | 
					    "strict": true,
 | 
				
			||||||
 | 
					    "noImplicitOverride": true,
 | 
				
			||||||
 | 
					    "noPropertyAccessFromIndexSignature": true,
 | 
				
			||||||
 | 
					    "noImplicitReturns": true,
 | 
				
			||||||
 | 
					    "noFallthroughCasesInSwitch": true,
 | 
				
			||||||
 | 
					    "skipLibCheck": true,
 | 
				
			||||||
 | 
					    "esModuleInterop": true,
 | 
				
			||||||
 | 
					    "sourceMap": true,
 | 
				
			||||||
 | 
					    "declaration": false,
 | 
				
			||||||
 | 
					    "experimentalDecorators": true,
 | 
				
			||||||
 | 
					    "moduleResolution": "bundler",
 | 
				
			||||||
 | 
					    "importHelpers": true,
 | 
				
			||||||
 | 
					    "target": "ES2022",
 | 
				
			||||||
 | 
					    "module": "ES2022",
 | 
				
			||||||
 | 
					    "useDefineForClassFields": false,
 | 
				
			||||||
 | 
					    "lib": [
 | 
				
			||||||
 | 
					      "ES2022",
 | 
				
			||||||
 | 
					      "dom"
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "angularCompilerOptions": {
 | 
				
			||||||
 | 
					    "enableI18nLegacyMessageIdFormat": false,
 | 
				
			||||||
 | 
					    "strictInjectionParameters": true,
 | 
				
			||||||
 | 
					    "strictInputAccessModifiers": true,
 | 
				
			||||||
 | 
					    "strictTemplates": true
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,16 @@
 | 
				
			||||||
 | 
					/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
 | 
				
			||||||
 | 
					/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  "extends": "./tsconfig.json",
 | 
				
			||||||
 | 
					  "compilerOptions": {
 | 
				
			||||||
 | 
					    "outDir": "./out-tsc/spec",
 | 
				
			||||||
 | 
					    "types": [
 | 
				
			||||||
 | 
					      "jasmine",
 | 
				
			||||||
 | 
					      "@angular/localize"
 | 
				
			||||||
 | 
					    ]
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "include": [
 | 
				
			||||||
 | 
					    "src/**/*.spec.ts",
 | 
				
			||||||
 | 
					    "src/**/*.d.ts"
 | 
				
			||||||
 | 
					  ]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Ładowanie…
	
		Reference in New Issue