[HOT] Libya Health Facillity Map

andrzej zaborowski balrogg at gmail.com
Mon Jan 9 15:10:39 GMT 2012


2012/1/9 andrzej zaborowski <balrogg at gmail.com>:
>> 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



More information about the HOT mailing list