AnsweredAssumed Answered

how to hide infowindow when measurement widget is active

Question asked by mallareddy2271 on Dec 5, 2018
Latest reply on Dec 5, 2018 by rscheitlin

measure-start and end events  works for point or straight line polylines, but this condition fails when it is polygon or an area with multiple edges/corners

 

 var measurement = new Measurement({
        map: map
    }, dom.byId("measurementDiv"));
    measurement.startup();
    //measurement.on("measure-start", function (evt) {
    //    if (map.infoWindow.isShowing) {
    //        map.infoWindow.hide();
    //    }
    //});
    //measurement.on("measure-end", function (evt) {
    //    if (map.infoWindow.isShowing) {
    //        map.infoWindow.hide();
    //    }
    //});

 

Any suggestions?

 

Thanks

Outcomes