]> git.openstreetmap.org Git - rails.git/blob - app/assets/javascripts/leaflet.shortbread.js
Merge remote-tracking branch 'upstream/pull/7190'
[rails.git] / app / assets / javascripts / leaflet.shortbread.js
1 L.OSM.Shortbread = L.OSM.MaplibreGL.extend({
2   onAdd: function (map) {
3     L.OSM.MaplibreGL.prototype.onAdd.call(this, map);
4     this.getMaplibreMap().setStyle("https://vector.openstreetmap.org/styles/svwd/svwd03style.json");
5   },
6   onRemove: function (map) {
7     L.OSM.MaplibreGL.prototype.onRemove.call(this, map);
8   }
9 });