Configure hillshading layer

- full attribution
- i18n key
- paint property defaults as template
This commit is contained in:
Norbert Renner 2022-06-15 14:21:31 +02:00
parent 8c8582ac19
commit ad68d0023b
6 changed files with 20 additions and 11 deletions

View file

@ -47,6 +47,10 @@ BR.MaplibreGlLazyLoader = L.Layer.extend({
_addGlLayer: function () {
this.glLayer = L.maplibreGL(this.options);
// see LayersConfig.createLayer
this.glLayer.getAttribution = function () {
return this.options.mapLink;
};
this._map.addLayer(this.glLayer);
this._updateZIndex();