I seem to have trouble using styles generated by google maps styling wizard with ngx-leaflet angular plugin. For an instance i used google maps styling wizard to reduce number of labels shown on the map.
Wanted to ask where in the code to apply given json object created by styling wizard.
i have following html:
<div leaflet
[leafletOptions]="options"
[leafletLayers]="layers"
[leafletLayersControl]="layersControl"
[leafletFitBounds]="fitBounds"
(leafletMapReady)="onMapReady($event)">
</div>
and this generated style:
style = [
{
"featureType": "poi",
"elementType": "labels.text",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "poi.business",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "road",
"elementType": "labels.icon",
"stylers": [
{
"visibility": "off"
}
]
},
{
"featureType": "transit",
"stylers": [
{
"visibility": "off"
}
]
}
];
Cant find it in documentation and tried in many ways. Is there a way to do this?