<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>Good 
morning,</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>Trying to draw a few 
points on the map using JSAPI, and am having no luck....  
</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>I added this code to 
the onLoad function: (This works)</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT color=#008000 
size=2>goCWCJSAPI.oMap.CreateNewLayer("Sensors","POINT"); //</DIV></FONT></SPAN>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>This returns TRUE 
however nothing is plotted. </FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>Then I added a 
button the the page, that calls a function plotIt()</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2>apoint=<FONT 
color=#0000ff size=2>new</FONT><FONT size=2> 
CWCPoint();</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2>apoint.x=77.0000;</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2>apoint.y=18.00;</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2>apoint.symbol_size=1;</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial 
size=2>apoint.font_color="10,10,10"; // some random colour</FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006></SPAN><SPAN class=204222114-03022006><FONT 
face=Arial size=2><FONT size=2>worked=goCWCJSAPI.oMap.AddPoint(</FONT><FONT 
color=#800000 size=2>"Sensors"</FONT><FONT 
size=2>,apoint);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT 
size=2>alert(worked);</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT 
size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT size=2>I know 
having a database connection is an option, however for a quick demo, I just want 
to add a bunch of points using javascript from a different application. Can 
someone tell me what I am missing to plot points?</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT 
size=2></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT 
size=2>Regards,</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=204222114-03022006><FONT face=Arial size=2><FONT 
size=2>Derek</DIV></FONT></FONT></SPAN></BODY></HTML>