Skip to content

Commit

Permalink
JS External OpenLayers Layer: defined custom title
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Jul 19, 2024
1 parent 6db2a64 commit f53289b
Show file tree
Hide file tree
Showing 2 changed files with 381 additions and 341 deletions.
3 changes: 2 additions & 1 deletion assets/src/modules/state/ExternalMapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,14 +391,15 @@ export class OlMapLayerState extends ExternalMapItemState {
throw TypeError('The parent of an OpenLayers map layer state has to be an external map group!');
}
super();
const wmsTitle = olLayer.get('wmsTitle');
this._type = 'ol-layer'
this._name = name;
this._olLayer = olLayer;
this._icon = base64svg + base64svgOlLayer;
this._parentGroup = parentGroup;
this._level = 2;
this._wmsName = null;
this._wmsTitle = name;
this._wmsTitle = wmsTitle ? wmsTitle : name;
this._checked = true;
this._visibility = true;
this._opacity = 1;
Expand Down
Loading

0 comments on commit f53289b

Please sign in to comment.