Skip to content

Commit

Permalink
add sourcce and buffer graphic layers before the feature graphic layer
Browse files Browse the repository at this point in the history
make the selected row visible, if possible, when clicking on a
    feature graphic on the map
remove an unused ref to esri/geometry/Extent
  • Loading branch information
tmcgee committed Apr 28, 2015
1 parent 1d2568d commit 369aa6c
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions widgets/AttributesTable/_GraphicsMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ define([
'esri/symbols/SimpleLineSymbol',
'esri/symbols/SimpleFillSymbol',
'esri/dijit/PopupTemplate',
'esri/graphicsUtils',
'esri/geometry/Extent'
'esri/graphicsUtils'

], function (
declare,
Expand All @@ -21,8 +20,7 @@ define([
SimpleLineSymbol,
SimpleFillSymbol,
PopupTemplate,
graphicsUtils,
Extent
graphicsUtils
) {

return declare(null, {
Expand Down Expand Up @@ -235,6 +233,18 @@ define([
*******************************/

addGraphicsLayer: function () {
this.sourceGraphics = new GraphicsLayer({
id: this.topicID + '_SourceGraphics',
title: 'Attribute Source Graphics'
});
this.map.addLayer(this.sourceGraphics);

this.bufferGraphics = new GraphicsLayer({
id: this.topicID + '_BufferGraphics',
title: 'Attribute Buffer Graphics'
});
this.map.addLayer(this.bufferGraphics);

this.featureGraphics = new GraphicsLayer({
id: this.topicID + '_FeatureGraphics',
title: 'Attribute Feature Graphics'
Expand All @@ -246,25 +256,12 @@ define([
}
this.map.addLayer(this.featureGraphics);


this.sourceGraphics = new GraphicsLayer({
id: this.topicID + '_SourceGraphics',
title: 'Attribute Source Graphics'
});
this.map.addLayer(this.sourceGraphics);

this.selectedGraphics = new GraphicsLayer({
id: this.topicID + '_SelectedGraphics',
title: 'Attribute Selected Graphics'
});
this.map.addLayer(this.selectedGraphics);

this.bufferGraphics = new GraphicsLayer({
id: this.topicID + '_BufferGraphics',
title: 'Attribute Buffer Graphics'
});
this.map.addLayer(this.bufferGraphics);

},

/*******************************
Expand Down Expand Up @@ -381,6 +378,8 @@ define([
var zm = mnu.selected;
mnu.selected = false;
this.grid.select(row);
this.grid.focus(row.element);
row.element.focus();
mnu.selected = zm;
this.setToolbarButtons();
}
Expand Down

0 comments on commit 369aa6c

Please sign in to comment.