Thanks for the packages.
It may be worth documenting the fact that you can also use the StylesControl with non-Mapbox styles by adding the style definition to the styleUrl property. For example:
{
label: 'Other',
styleName: 'Some Other Tile Source',
styleUrl: {
'version': 8,
'name': 'Other',
'sources': {
'other': {
'type': 'raster',
'tiles': [`https://url`],
'tileSize': 512,
'attribution': '© Some other source'
}
},
'layers': [
{
'id': 'other-tiles',
'type': 'raster',
'source': 'other',
'minzoom': 0,
'maxzoom': 22
}
]
}
}
Hi,
Thanks for the packages.
It may be worth documenting the fact that you can also use the StylesControl with non-Mapbox styles by adding the style definition to the
styleUrlproperty. For example:as long as the object assigned to the
styleUrlhas anameproperty that matches the label, all is good.Thanks