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
<SPAN class="keyword token">var</SPAN> measurement <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">Measurement</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">{</SPAN>
map<SPAN class="punctuation token">:</SPAN> map
<SPAN class="punctuation token">}</SPAN><SPAN class="punctuation token">,</SPAN> dom<SPAN class="punctuation token">.</SPAN><SPAN class="token function">byId</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="string token">"measurementDiv"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
measurement<SPAN class="punctuation token">.</SPAN><SPAN class="token function">startup</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN>
<SPAN class="comment token">//measurement.on("measure-start", function (evt) {</SPAN>
<SPAN class="comment token">// if (map.infoWindow.isShowing) {</SPAN>
<SPAN class="comment token">// map.infoWindow.hide();</SPAN>
<SPAN class="comment token">// }</SPAN>
<SPAN class="comment token">//});</SPAN>
<SPAN class="comment token">//measurement.on("measure-end", function (evt) {</SPAN>
<SPAN class="comment token">// if (map.infoWindow.isShowing) {</SPAN>
<SPAN class="comment token">// map.infoWindow.hide();</SPAN>
<SPAN class="comment token">// }</SPAN>
<SPAN class="comment token">//});</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>Any suggestions?
Thanks