Skip to content

Commit

Permalink
get infoTemplate from the layer's infoTemplates array
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Sep 12, 2016
1 parent 52973b1 commit 59b5ebb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions viewer/js/gis/dijit/Identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@ define([
layerId = layer.layerId;
}

// get infoTemplate from the layer's infoTemplates array
if (layer.infoTemplates) {
if (layer.infoTemplates.hasOwnProperty(layerId)) {
return layer.infoTemplates[layerId].infoTemplate;
} else {
return null;
}
}

// see if we have a Popup config defined for this layer
if (this.identifies.hasOwnProperty(layer.id)) {
if (this.identifies[layer.id].hasOwnProperty(layerId)) {
Expand Down

0 comments on commit 59b5ebb

Please sign in to comment.