Closed pbauer closed 5 years ago
Some tile providers need more than their name to be registered. E.g. L.tileLayer.provider('MapBox', {id: 'mapbox.streets', accessToken: 'xxx'}).addTo(map); See https://github.com/leaflet-extras/leaflet-providers#providers-requiring-registration
L.tileLayer.provider('MapBox', {id: 'mapbox.streets', accessToken: 'xxx'}).addTo(map);
Currently it is not possible to use such layers with pat-leaflet. Could we change the pattern to allow passing that additional layer-information as configuration?
Fixed via: https://github.com/Patternslib/pat-leaflet/pull/2
Some tile providers need more than their name to be registered. E.g.
L.tileLayer.provider('MapBox', {id: 'mapbox.streets', accessToken: 'xxx'}).addTo(map);
See https://github.com/leaflet-extras/leaflet-providers#providers-requiring-registrationCurrently it is not possible to use such layers with pat-leaflet. Could we change the pattern to allow passing that additional layer-information as configuration?