Hey there, I'm a newcomer to Angular2/Typescript and I've been working on styling a map in my Angular2 project. I integrated a map using the Angular2 Google Maps Components, but I'm having trouble with applying styles through the undocumented MapTypeStyle Interface. Can anyone guide me on how to effectively use it in both my module and the html files? The map functionality is working fine, but the styles are not being applied. Any assistance would be greatly appreciated.
You can refer to the relevant documentation on the Google MapsTypeStyle Reference for more information.
Here's a snippet of the code for the html file:
<sebm-google-map [latitude]="lat" [longitude]="lng">
<sebm-google-map-marker [latitude]="lat" [longitude]="lng"></sebm-google-map-marker>
</sebm-google-map>
And hereβs an excerpt from the module:
export class GmapComponent implements OnInit {
title: string = 'Current Location';
lat: number = 50.937531;
lng: number = 6.960278600000038;
constructor() { }
ngOnInit() {
}
}