1

I have an ESRI Web App Builer 2.7 stand alone web application where it is required that we are able to control the order of attribute data appearing in an Infowindow on clicking multiple features. For example, on click at a point on the map there might be several features overlapping each other. The ESRI out of the box infoWindow allows us to navigate through associated attribute data of each overlapping feature by click Next/Previous button on top right corner of the InfoWindow popup.

Is there any way to control the order in which the feature data appears? Please refer to attached image. enter image description here

0

You can make use of "SetFeatures" event of Map's InfoWindow to get the selected features before an InfoWindow is shown and rearrange them using feature's properties and general array functions.

map.infoWindow.on("SetFeatures",function(){
          var selectedFeatures = map.infoWindow.features;
        })

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.