Hi all,
I'm trying to set a different behavior of the Popup Panel Widget on map click for each layer.
For a particular layer, I need to retrieve data from a webservice passing a field value as parameter.
Is it right what I'm trying to do or you think I have to move this code somewhere else?
at the moment the line 10 gave me an error:
TypeError: this.own is not a function
startup: function () {
this.inherited(arguments);
var map = this.map;
LayerInfos.getInstance(map, map.itemInfo).then(lang.hitch(function(operLayerInfos) {
operLayerInfos.getLayerInfoArray().forEach(function(layerInfo) {
if (layerInfo.title == 'Map') {
var layerId = layerInfo.id;
console.log('layer ID = ', layerId);
var layer = map.getLayer(layerId);