From e93879c29990c3595f5f67a1482717126e1c2196 Mon Sep 17 00:00:00 2001 From: cmndrbensisko Date: Mon, 16 Feb 2015 10:46:08 -0500 Subject: [PATCH] FeatureLayer name Hotfix --- Widget.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Widget.js b/Widget.js index cf9af71..2e656f2 100644 --- a/Widget.js +++ b/Widget.js @@ -173,6 +173,9 @@ define([ lOptions.showLabels = true; } lLayer = new FeatureLayer(layer.url, lOptions); + lLayer.on('load',function(evt){ + evt.layer.name = lOptions.id; + }); this._viewerMap.addLayer(lLayer); }else if(layer.type.toUpperCase() === 'TILED'){ if(layer.displayLevels){