Skip to content
Permalink
Browse files

Fix for editor plugin

  • Loading branch information...
uprel committed Mar 7, 2019
1 parent 2e82e91 commit fe78b563fd344f895eb8f6d62a9175c0abe381b3
Showing with 5 additions and 0 deletions.
  1. +5 −0 client/site/js/Customizations.js
@@ -45,6 +45,7 @@ function customBeforeMapInit() {
function customAfterMapInit() {

// Add legend symbols to the toc for initially visible layers
// Also trigger prepareEdit in case of Editor plugin
var treeRoot = layerTree.getNodeById("wmsNode");
treeRoot.firstChild.cascade(
function (n) {
@@ -56,6 +57,10 @@ function customAfterMapInit() {
provider: '',
layername: layerId
} : projectData.layers[layerId];
//editor
if(layer.wfs && (typeof(prepareEdit) == 'function') && EditorConfig && EditorConfig.autoPrepareAllLayersOnStartup) {
prepareEdit(layer);
}
projectData.setLayerLegend(layer,n);
}
}

0 comments on commit fe78b56

Please sign in to comment.
You can’t perform that action at this time.