WAB Dev feature action, access map infowindow?

294
1
01-19-2018 12:35 PM
CharlesBailey
New Contributor III

I have custom feature action in a widget, and when it is executed I would like any existing popup (infoWindow) to move to the upper left corner. However, I cannot figure out how to access the map from within the feature action js code. I am assuming that is necessary to get to the infoWindow. Have tried lang.hitch and the map id from the app config file. Thanks, cob

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Cob,

   I think CaSe has got you again. This works fine for me:

    onExecute: function(featureSet){
      this.map.infoWindow.hide();
    }

Notice the i in info is lower case not upper.

0 Kudos