hi: there is some thing wrong with the measurement widget, the code as felow:
i user js api of 2.3.
if (measurement != null)
{
measurement.destroy();
}
measurement = new esri.dijit.Measurement({
map: map
}, dojo.byId('apDiv1'));
measurement.startup();
// measurement is a Global object
// this code may be called many times , the first once it work right , but the second....... it does not work right
the excption is :
tride to register widget with id == apDiv1 but that id is already gegisterdineNumber;
but before i new the measurement object a alread call its "destroy();" , does not the "destroy();" work ???
or is it a bug ??? How do i do it ?
thank you.