1 L.OSM.Shortbread = L.OSM.MaplibreGL.extend({
2 onAdd: function (map) {
3 L.OSM.MaplibreGL.prototype.onAdd.call(this, map);
4 const styleURL = "https://vector.openstreetmap.org/styles/shortbread/" + this.options.styleName;
5 this.getMaplibreMap().setStyle(styleURL);
7 onRemove: function (map) {
8 L.OSM.MaplibreGL.prototype.onRemove.call(this, map);
12 L.OSM.ShortbreadColorful = L.OSM.Shortbread.extend({
14 styleName: "colorful.json"
18 L.OSM.ShortbreadEclipse = L.OSM.Shortbread.extend({
20 styleName: "eclipse.json"