<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19170"></HEAD>
<BODY style="MARGIN-TOP: 10px; MARGIN-LEFT: 10px; MARGIN-RIGHT: 10px"><LINK 
rel=stylesheet type=text/css 
href="http://www.clubmontagnecanadien.qc.ca/css/style_cmc_courriel.css">
<DIV><FONT face=Verdana><FONT size=2></FONT></FONT></DIV><FONT color=#003366 
size=2>
<DIV><FONT face=Verdana>The World Health Organization (WHO) has asked HOT and 
the Stand By Task Force (SBTF) to activate to map health facilities in in <FONT 
color=#000000>Libya</FONT>. This should be done in a very short period of 
time.</FONT></FONT></DIV>
<DIV><FONT color=#003366 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#003366 size=2 face=Verdana>For this Task, I have developped a 
Monitoring Map (Openlayers API) that interact with GDoc spreadsheet to 
facilitate input of information and monitoring :</FONT></DIV>
<DIV><FONT color=#003366 size=2 face=Verdana>1. A GeoRSS overlay containing 
the GDoc records showing Health Facilities in the Registry.</FONT></DIV>
<DIV><FONT color=#003366><FONT size=2 face=Verdana>2. A function to click on the 
map to add information about a facility. Medical fellows from Libya will then 
have the possibility to simply add information in a GDoc that will later be 
treated by the Task Force.</FONT></FONT></DIV>
<DIV><FONT color=#003366><FONT size=2><FONT face=Verdana>url -> </FONT><A 
href="http://pierzen.dev.openstreetmap.org/hot/openlayers/libya_health_edit.php"><FONT 
face=Verdana>http://pierzen.dev.openstreetmap.org/hot/openlayers/libya_health_edit.php</FONT></A></FONT></FONT></DIV>
<DIV><FONT color=#003366 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#003366 face=Verdana>This API works fine except for the Switch 
Mode Form (permuting between Navigation and Edit Point Mode). </FONT></DIV>
<DIV><FONT color=#003366 face=Verdana></FONT> </DIV>
<DIV>
<DIV><FONT color=#003366><FONT face=Verdana><FONT size=2>Since I </FONT>don't 
have enough expertise about events in Openlayers, I request your help to fix 
this problem.</FONT></FONT></DIV>
<DIV><FONT color=#003366 face=Verdana></FONT> </DIV>
<DIV><FONT color=#003366 face=Verdana>In the HTML, I have radio 
buttons</FONT></DIV>
<DIV><FONT color=#003366>
<DIV><FONT 
face=Verdana>        <div id="controlToggle"></FONT></DIV>
<DIV><FONT 
face=Verdana>            <input type="radio" name="type" value="none" id="noneToggle"</FONT></DIV>
<DIV><FONT 
face=Verdana>                   onclick="toggleControl(this);" checked="checked" /></FONT></DIV>
<DIV><FONT 
face=Verdana>            <label for="noneToggle">Navigate</label></FONT></DIV>
<DIV><FONT 
face=Verdana>        </div></FONT></DIV>
<DIV><FONT 
face=Verdana>        <div></FONT></DIV>
<DIV><FONT face=Verdana></FONT></DIV>
<DIV><FONT 
face=Verdana>            <input type="radio" name="type" value="point" id="pointToggle"</FONT></DIV>
<DIV><FONT 
face=Verdana>                   onclick="toggleControl(this);" /></FONT></DIV>
<DIV><FONT 
face=Verdana>            <label for="pointToggle">Add Facility</label></FONT></DIV>
<DIV><FONT 
face=Verdana>        </div></FONT></DIV></FONT></DIV></DIV>
<DIV><FONT color=#003366 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#003366 size=2>In the Javascript, 
t</FONT><FONT color=#003366 size=2>he 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.</FONT></FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana><FONT color=#003366 size=2>I dont succeed in reading 
status of Controls object.  As I understand it, there should 
be an</FONT><FONT color=#003366 size=2> instruction that will let me 
know</FONT> if the Controls(point) is active. </FONT></DIV>
<DIV><FONT face=Verdana></FONT> </DIV>
<DIV><FONT face=Verdana>Anybody can help me about that?</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT color=#000080 size=2 
face=Verdana><EM></EM></FONT></FONT> </DIV>
<DIV><EM><FONT size=2 face=Verdana></FONT></EM> </DIV>
<DIV><FONT color=#c0c0c0><FONT color=#000080 size=2 
face=Verdana><EM><SPAN>Pierre Béland</SPAN></EM></FONT></DIV>
<DIV><FONT color=#000080 size=2 
face=Verdana><EM></EM></FONT></FONT></DIV></BODY></HTML>