NEtgis Client Bugfix

* fixes bug where initial geometry has not been rendered on client loading
* needs to be replaced asap by a proper bugfix from the original devs
This commit is contained in:
mpeltriaux 2022-09-13 13:43:43 +02:00
parent c08f5145fe
commit 6a30af647a

View File

@ -394,12 +394,16 @@ netgis.MapOpenLayers.prototype.clearAll = function()
{
for ( var i = 0; i < this.layers.length; i++ )
{
if(this.layers[i] === this.editLayer){
continue;
};
this.map.removeLayer( this.layers[ i ] );
}
this.layers = [];
this.layers = [this.editLayer];
this.snapFeatures.clear();
this.snapFeatures.push(this.editLayer);
};
netgis.MapOpenLayers.prototype.onUpdateStyle = function( e )