Skip to content

Commit

Permalink
Refresh WMS layer after edition follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
nboisteault committed Jul 27, 2023
1 parent e73d824 commit bc59e16
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions assets/src/legacy/edition.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,16 +525,12 @@ OpenLayers.Geometry.pointOnSegment = function(point, segment) {
var qgisName = childLayerConfig[0];
var childLayerConfig = childLayerConfig[1];

if( !('geometryType' in childLayerConfig) || childLayerConfig.geometryType == 'none' )
if (!('geometryType' in childLayerConfig) || childLayerConfig.geometryType == 'none')
continue;

const olLayer = lizMap.mainLizmap.baseLayersMap.getLayerByName(qgisName);

if( olLayer.length == 0 ){
continue;
}

if( !olLayer.getVisible() ){
if (!olLayer.getVisible()) {
continue;
}

Expand Down

0 comments on commit bc59e16

Please sign in to comment.