-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 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
}
]
}
}
as long as the object assigned to the styleUrl has a name property that matches the label, all is good.
Thanks
korywka
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request