how to hide infowindow when measurement widget is active

713
3
Jump to solution
12-05-2018 09:59 AM
MRReddy
Occasional Contributor

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

0 Kudos
1 Solution

Accepted Solutions
3 Replies
RobertScheitlin__GISP
MVP Emeritus
MRReddy
Occasional Contributor

Robert,

by using this line it fails to behave as expected

map.setInfoWindowOnClick(true);
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Malla,

   You use false when you do not want the popups to show and then use true when you want to restore the popups.

0 Kudos