ok - old thread and the Git example is long gone, and I've got everything "working" but I do get this error on "closing" the pane (really hiding it)
TypeError<SPAN class="punctuation token">:</SPAN> Cannot read property <SPAN class="string token">'addNode'</SPAN> <SPAN class="keyword token">of</SPAN> undefined at Object<SPAN class="punctuation token">.</SPAN>_dock <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>dojox<SPAN class="operator token">/</SPAN>layout<SPAN class="operator token">/</SPAN>FloatingPane<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">10</SPAN><SPAN class="punctuation token">)</SPAN> at js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">63</SPAN> at Object<SPAN class="punctuation token">.</SPAN><SPAN class="operator token"><</SPAN>anonymous<SPAN class="operator token">></SPAN> <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>dojox<SPAN class="operator token">/</SPAN>layout<SPAN class="operator token">/</SPAN>FloatingPane<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">8</SPAN><SPAN class="punctuation token">)</SPAN> at d<SPAN class="punctuation token">.</SPAN>Animation<SPAN class="punctuation token">.</SPAN>onEnd <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">63</SPAN><SPAN class="punctuation token">)</SPAN> at d<SPAN class="punctuation token">.</SPAN>Animation<SPAN class="punctuation token">.</SPAN>_fire <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">248</SPAN><SPAN class="punctuation token">)</SPAN> at d<SPAN class="punctuation token">.</SPAN>Animation<SPAN class="punctuation token">.</SPAN>_cycle <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">251</SPAN><SPAN class="punctuation token">)</SPAN> at Object<SPAN class="punctuation token">.</SPAN><SPAN class="operator token"><</SPAN>anonymous<SPAN class="operator token">></SPAN> <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">63</SPAN><SPAN class="punctuation token">)</SPAN> at Object<SPAN class="punctuation token">.</SPAN>c <SPAN class="punctuation token">[</SPAN><SPAN class="keyword token">as</SPAN> run<SPAN class="punctuation token">]</SPAN> <SPAN class="punctuation token">(</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">119</SPAN><SPAN class="punctuation token">)</SPAN> at js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.23</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">63</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>
But many thanks for the earlier post.
Check this https://github.com/btfou/simple-measure
require([ //layout x 'dojox/layout/FloatingPane', 'dojox/layout/Dock', //dojo 'dojo/dom-construct', 'dojo/_base/window', ], function ( //layout x FloatingPane, Dock, //dojo domConstruct, win ) { var dock = new Dock({ style: 'position:absolute;bottom:0;right:0;height:0px;width:0px display:none;z-index:0;' }, domConstruct.create('div', null, win.body())); //measure floating pane var measurefp = new FloatingPane({ id: 'measure-floating-pane', title: 'Measure', resizable: false, resizeAxis: null, closable: false, dockable: true, dockTo: dock, style: 'position:absolute;top:80px;left:320px;width:220px;height:200px;visibility:hidden;overflow:hidden;', href: 'html/measure.html', preventCache: true, preload: false }, domConstruct.create('div', null, win.body())); measurefp.startup(); measurefp.on('focus', function () { measurefp.bringToTop(); }); measurefp.on('show', function () { measurefp.bringToTop(); }); });
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.