8
8
'esri/symbols/SimpleLineSymbol' ,
9
9
'esri/symbols/SimpleFillSymbol' ,
10
10
'esri/dijit/PopupTemplate' ,
11
- 'esri/graphicsUtils' ,
12
- 'esri/geometry/Extent'
11
+ 'esri/graphicsUtils'
13
12
14
13
] , function (
15
14
declare ,
@@ -21,8 +20,7 @@ define([
21
20
SimpleLineSymbol ,
22
21
SimpleFillSymbol ,
23
22
PopupTemplate ,
24
- graphicsUtils ,
25
- Extent
23
+ graphicsUtils
26
24
) {
27
25
28
26
return declare ( null , {
@@ -235,6 +233,18 @@ define([
235
233
*******************************/
236
234
237
235
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
+
238
248
this . featureGraphics = new GraphicsLayer ( {
239
249
id : this . topicID + '_FeatureGraphics' ,
240
250
title : 'Attribute Feature Graphics'
@@ -246,25 +256,12 @@ define([
246
256
}
247
257
this . map . addLayer ( this . featureGraphics ) ;
248
258
249
-
250
- this . sourceGraphics = new GraphicsLayer ( {
251
- id : this . topicID + '_SourceGraphics' ,
252
- title : 'Attribute Source Graphics'
253
- } ) ;
254
- this . map . addLayer ( this . sourceGraphics ) ;
255
-
256
259
this . selectedGraphics = new GraphicsLayer ( {
257
260
id : this . topicID + '_SelectedGraphics' ,
258
261
title : 'Attribute Selected Graphics'
259
262
} ) ;
260
263
this . map . addLayer ( this . selectedGraphics ) ;
261
264
262
- this . bufferGraphics = new GraphicsLayer ( {
263
- id : this . topicID + '_BufferGraphics' ,
264
- title : 'Attribute Buffer Graphics'
265
- } ) ;
266
- this . map . addLayer ( this . bufferGraphics ) ;
267
-
268
265
} ,
269
266
270
267
/*******************************
@@ -381,6 +378,8 @@ define([
381
378
var zm = mnu . selected ;
382
379
mnu . selected = false ;
383
380
this . grid . select ( row ) ;
381
+ this . grid . focus ( row . element ) ;
382
+ row . element . focus ( ) ;
384
383
mnu . selected = zm ;
385
384
this . setToolbarButtons ( ) ;
386
385
}
0 commit comments