1 //= require maplibre/i18n
3 L.OSM.ThunderforestVector = L.OSM.MaplibreGL.extend({
4 onAdd: function (map) {
5 L.OSM.MaplibreGL.prototype.onAdd.call(this, map);
6 const styleURL = "https://api.thunderforest.com/styles/" + this.options.styleName + "/style.json?key=" + this.options.apikey;
7 this.getMaplibreMap().setStyle(styleURL);
9 onRemove: function (map) {
10 L.OSM.MaplibreGL.prototype.onRemove.call(this, map);
14 L.OSM.TransportMapVector = L.OSM.ThunderforestVector.extend({
16 styleName: "transport"
20 L.OSM.TransportDarkMapVector = L.OSM.ThunderforestVector.extend({
22 styleName: "transport-dark"