Select to view content in your preferred language

how to hide infowindow when measurement widget is active

908
3
Jump to solution
12-05-2018 09:59 AM
MRReddy
Regular 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
Regular 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