Skip to content

Commit 369aa6c

Browse files
committed
add sourcce and buffer graphic layers before the feature graphic layer
make the selected row visible, if possible, when clicking on a feature graphic on the map remove an unused ref to esri/geometry/Extent
1 parent 1d2568d commit 369aa6c

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

widgets/AttributesTable/_GraphicsMixin.js

+16-17
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ define([
88
'esri/symbols/SimpleLineSymbol',
99
'esri/symbols/SimpleFillSymbol',
1010
'esri/dijit/PopupTemplate',
11-
'esri/graphicsUtils',
12-
'esri/geometry/Extent'
11+
'esri/graphicsUtils'
1312

1413
], function (
1514
declare,
@@ -21,8 +20,7 @@ define([
2120
SimpleLineSymbol,
2221
SimpleFillSymbol,
2322
PopupTemplate,
24-
graphicsUtils,
25-
Extent
23+
graphicsUtils
2624
) {
2725

2826
return declare(null, {
@@ -235,6 +233,18 @@ define([
235233
*******************************/
236234

237235
addGraphicsLayer: function () {
236+
this.sourceGraphics = new GraphicsLayer({
237+
id: this.topicID + '_SourceGraphics',
238+
title: 'Attribute Source Graphics'
239+
});
240+
this.map.addLayer(this.sourceGraphics);
241+
242+
this.bufferGraphics = new GraphicsLayer({
243+
id: this.topicID + '_BufferGraphics',
244+
title: 'Attribute Buffer Graphics'
245+
});
246+
this.map.addLayer(this.bufferGraphics);
247+
238248
this.featureGraphics = new GraphicsLayer({
239249
id: this.topicID + '_FeatureGraphics',
240250
title: 'Attribute Feature Graphics'
@@ -246,25 +256,12 @@ define([
246256
}
247257
this.map.addLayer(this.featureGraphics);
248258

249-
250-
this.sourceGraphics = new GraphicsLayer({
251-
id: this.topicID + '_SourceGraphics',
252-
title: 'Attribute Source Graphics'
253-
});
254-
this.map.addLayer(this.sourceGraphics);
255-
256259
this.selectedGraphics = new GraphicsLayer({
257260
id: this.topicID + '_SelectedGraphics',
258261
title: 'Attribute Selected Graphics'
259262
});
260263
this.map.addLayer(this.selectedGraphics);
261264

262-
this.bufferGraphics = new GraphicsLayer({
263-
id: this.topicID + '_BufferGraphics',
264-
title: 'Attribute Buffer Graphics'
265-
});
266-
this.map.addLayer(this.bufferGraphics);
267-
268265
},
269266

270267
/*******************************
@@ -381,6 +378,8 @@ define([
381378
var zm = mnu.selected;
382379
mnu.selected = false;
383380
this.grid.select(row);
381+
this.grid.focus(row.element);
382+
row.element.focus();
384383
mnu.selected = zm;
385384
this.setToolbarButtons();
386385
}

0 commit comments

Comments
 (0)