1 //= require leaflet.maplibre
3 L.OSM.Shortbread = L.OSM.MaplibreGL.extend({
4 onAdd: function (map) {
5 L.OSM.MaplibreGL.prototype.onAdd.call(this, map);
6 const styleURL = "https://vector.openstreetmap.org/styles/shortbread/" + this.options.styleName;
7 this.getMaplibreMap().setStyle(styleURL);
9 onRemove: function (map) {
10 L.OSM.MaplibreGL.prototype.onRemove.call(this, map);
14 L.OSM.ShortbreadColorful = L.OSM.Shortbread.extend({
16 styleName: "colorful.json"
20 L.OSM.ShortbreadEclipse = L.OSM.Shortbread.extend({
22 styleName: "eclipse.json"