1 //= require maplibre/i18n
2 //= require @maptiler/maplibre-gl-omt-language
4 L.OSM.OpenMapTiles = L.OSM.MaplibreGL.extend({
5 initialize: function (options) {
6 L.OSM.MaplibreGL.prototype.initialize.call(this, {
8 "https://api.maptiler.com/maps/openstreetmap/style.json?key=" +
13 onAdd: function (map) {
14 L.OSM.MaplibreGL.prototype.onAdd.call(this, map);
15 OSM.MapLibre.setOMTMapLanguage(this.getMaplibreMap());
17 onRemove: function (map) {
18 L.OSM.MaplibreGL.prototype.onRemove.call(this, map);