diff --git a/src/app/lib/marker/marker.component.ts b/src/app/lib/marker/marker.component.ts index 34febfd9e..f71536c8f 100644 --- a/src/app/lib/marker/marker.component.ts +++ b/src/app/lib/marker/marker.component.ts @@ -1,5 +1,3 @@ -import { LngLatLike, Marker, PointLike } from 'mapbox-gl'; -import { MapService } from '../map/map.service'; import { Component, ElementRef, @@ -11,11 +9,20 @@ import { AfterViewInit, OnInit, ChangeDetectionStrategy, + ViewEncapsulation } from '@angular/core'; +import { LngLatLike, Marker, PointLike } from 'mapbox-gl'; +import { MapService } from '../map/map.service'; @Component({ selector: 'mgl-marker', template: '
', + styles: [` + .mapboxgl-marker { + line-height: 0; + } + `], + encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush }) export class MarkerComponent implements OnChanges, OnDestroy, AfterViewInit, OnInit {