2012/1/9 andrzej zaborowski <[email protected]>: >> In the Javascript, the toggleControl(element) function lets permute between >> the two modes. On the other hand, >> the events.register("click", map, function) opens a popup when we click on >> the map. This should popup only when the Add Facility mode is active. >> >> I dont succeed in reading status of Controls object. As I understand it, >> there should be an instruction that will let me know if the Controls(point) >> is active. > > The page uses .activate(), in the same way ".active" can be used to > check if the control is active. (Controls["point"].active) > > Alternatively using plain html dom "if > (document.getElementById('pointToggle').checked) .." should also work?
(Sorry if I misunderstood the question -- it looks like you're already using these properties) Cheers _______________________________________________ HOT mailing list [email protected] http://lists.openstreetmap.org/listinfo/hot
