Skip to content

Commit

Permalink
fix feature layer menu heatmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
green3g committed Nov 2, 2017
1 parent 28047e4 commit e63b117
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions widgets/HeatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ define([
topic.subscribe(this.topic, lang.hitch(this, 'initHeatMap'));
},
initHeatMap: function (r) {
var layerId = r.layer.id + r.subLayer.id;
if (!this._heatMapLayers[r.layer.id]) {
this._heatMapLayers[r.layer.id] = {};
}
var layerId = [
r.layer.id,
(r.subLayer ? r.subLayer.id : 'feature'),
'heatmap'
].join('-');
if (!this._heatMapLayers[layerId]) {
var serviceURL = r.layer.url + '/' + r.subLayer.id;
var serviceURL = r.layer.url + (r.subLayer ? '/' + r.subLayer.id : '');
var heatmapFeatureLayerOptions = {
mode: FeatureLayer.MODE_SNAPSHOT,
outFields: ['*'],
Expand Down

0 comments on commit e63b117

Please sign in to comment.