diff --git a/angular.json b/angular.json index d25f445..ba1b2d7 100644 --- a/angular.json +++ b/angular.json @@ -2,7 +2,8 @@ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "version": 1, "cli": { - "packageManager": "npm" + "packageManager": "npm", + "analytics": false }, "newProjectRoot": "projects", "projects": { diff --git a/src/assets/map-image.svg b/public/map-image.svg similarity index 100% rename from src/assets/map-image.svg rename to public/map-image.svg diff --git a/src/app/map-svg/map-svg.ts b/src/app/map-svg/map-svg.ts index e6795f8..1623851 100644 --- a/src/app/map-svg/map-svg.ts +++ b/src/app/map-svg/map-svg.ts @@ -14,7 +14,7 @@ export class MapSvgComponent implements AfterViewInit { ngAfterViewInit(): void { // Load SVG file and inject it into the component - this.http.get('assets/map-image.svg', { responseType: 'text' }).subscribe({ + this.http.get('map-image.svg', { responseType: 'text' }).subscribe({ next: (svgContent) => { const container = this.elementRef.nativeElement.querySelector('.svg-container'); if (container) {