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
Solved! Go to Solution.
Malla,
Use the maps setInfoWindowOnClick method.
https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setinfowindowonclick
Malla,
Use the maps setInfoWindowOnClick method.
https://developers.arcgis.com/javascript/3/jsapi/map-amd.html#setinfowindowonclick
Robert,
by using this line it fails to behave as expected
map.setInfoWindowOnClick(true);
Malla,
You use false when you do not want the popups to show and then use true when you want to restore the popups.