<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR><BR><BR> Wayne, I am not constructing XML document that has tags like
<BR>
<overlay><BR><point x="7435386.24" y="6172463.1" id="p1"><BR><label>just a label</label><BR><symbol shape="bullet" size="10" opacity="1" color="#FF0000" /><BR></point><BR></overlay><BR><BR>
but I am creating kaXmlPoints manualy and adding it to XmlOVerlay like<BR>
var my_poin = myXmlOverlay.addNewPoint('p1',349,786);<BR>var my_label= new kaXmlLabel();<BR>var my_icon= new kaXmlIcon();<BR>my_label.text='Title One';<BR>my_label.boxcolor='#ff0000';<BR>my_label. h='10';<BR>my_label. w='50';<BR>my_label.font='Aria';<BR>my_label.color='#000000';<BR>
my_icon.icon_w='20';<BR>my_icon.icon_h='41';<BR>my_icon.icon_src='images/bullet.gif';<BR>my_icon.draw(my_point);<BR>my_label.draw(my_point);<BR><BR>
above code works fine on index_overlay.html when i call it on some event, but i want to have this thing in setInterVal , above code is written in some seperate PHP file that generates it.<BR><BR>
What I guess is loadXml requires xml URL and my PHP file is not generating XML tags rather it creates kaXmlPoint directly.<BR>
<BR>
<BR>
Regards<BR>
Ghulam Muqtada<BR><BR><BR>
<HR id=stopSpelling>
> Date: Thu, 19 Oct 2006 09:38:36 +1000<BR>> From: wayne@datalinktech.com.au<BR>> To: muqtada@hotmail.com<BR>> CC: ka-map-users@lists.maptools.org<BR>> Subject: Re: [ka-Map-users] XMLOverlay Multiple Items at Same Point<BR>> <BR>> Hi,<BR>> The code you have shown us is not XML at all. It looks like you are <BR>> constructing a string<BR>> with Javascript. Have you read and understood the contents of this page <BR>> yet?<BR>> <BR>> http://ka-map.ominiverdi.org/wiki/index.php/Overlay_API_Reference<BR>> <BR>> Please ensure that myXmlOverlay.loadXml() is being fed with the right <BR>> information. Something like this.<BR>> <BR>> <overlay><BR>> <point x="7435386.24" y="6172463.1" id="p1"><BR>> <label>just a label</label><BR>> <symbol shape="bullet" size="10" opacity="1" color="#FF0000" /><BR>> </point><BR>> </overlay><BR>> <BR>> And read the FAQ on that page to ensure the right headers are sent.<BR>> <BR>> Cheers,<BR>> Wayne<BR>> <BR>> Ghulam Muqtada wrote:<BR>> > Hi<BR>> > <BR>> > I am stuck with thing in Ka XmlOverlay, I have a php file that <BR>> > generates Xml points , this is fucntion that create points<BR>> > <BR>> > function getCoordinates($i,$scale,$node_name,$x,$y)<BR>> > {<BR>> > $str="";<BR>> > $str.=" var my_point$i = myXmlOverlay.addNewPoint('$node_name',$x,$y);"<BR>> > ." var my_label$i= new kaXmlLabel();"<BR>> > ." var my_icon$i= new kaXmlIcon();"<BR>> > ." my_label$i.text='$node_name';"<BR>> > ." my_label$i.boxcolor=\"#ff0000\";"<BR>> > ." my_label$i. h=\"10\";"<BR>> > ." my_label$i. w=\"50\";"<BR>> > ." my_label$i.font=\"Arial\";"<BR>> > ." my_label$i.color=\"#000000\";"<BR>> > ." my_label$i.xoff=\"5\";"<BR>> > ." my_label$i.yoff=\"5\";"<BR>> > ." my_icon$i.icon_w=\"20\";"<BR>> > ." my_icon$i.icon_h=\"41\";"<BR>> > ." my_icon$i.icon_src=\"images/scar75.gif\";"<BR>> > ." my_icon$i.draw(my_point$i);"<BR>> > ." my_label$i.draw(my_point$i);";<BR>> > return $str;<BR>> > }<BR>> ><BR>> ><BR>> > may I call this class say "XmlPoints.php" in setInterval so that i <BR>> > can get fresh values ?<BR>> > becuase myXmlOverlay.loadXml() doesnot work here, since it needs some <BR>> > document that has <overlay></overlay> type stuff<BR>> > <BR>> > <BR>> > any help will be really appreciable<BR>> > <BR>> > Regards<BR>> > G.Muqtada<BR>> ><BR>> ><BR>> ><BR>> ><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > Date: Wed, 18 Oct 2006 18:15:45 +0200<BR>> > From: pg.navone@gmail.com<BR>> > To: wayne@datalinktech.com.au<BR>> > Subject: Re: [ka-Map-users] XMLOverlay Multiple Items at Same Point<BR>> > CC: ka-map-users@lists.maptools.org<BR>> ><BR>> > Unfortunately the disk of my server crashed in August and I have<BR>> > not yet reinstalled the public demo.<BR>> ><BR>> > Sorry.<BR>> ><BR>> ><BR>> > 2006/10/18, Wei Yang, Ng - Wayne < wayne@datalinktech.com.au<BR>> > <mailto:wayne@datalinktech.com.au>>:<BR>> ><BR>> > Hi Jeff,<BR>> > You must be referring to a point collision system for<BR>> > kaXmlOverlay.<BR>> > The good news is that I have implemented such a feature for<BR>> > kaXmlOverlay.js about 2 months ago. This feature works in<BR>> > Mozilla/IE/Opera and should work with others too. The bad news<BR>> > is that I<BR>> > have yet to merge it with the current release of ka-map in cvs<BR>> > due to<BR>> > other commitments and deadlines. Do let me know if you would<BR>> > like a copy<BR>> > of my source code and an explanation on how it works. I am<BR>> > currently<BR>> > using the overlib javascript library for point popups. These<BR>> > popups<BR>> > allow me to list the items within collision points.<BR>> ><BR>> > Hi Pg,<BR>> > I should get cracking on merging my stuff with yours. Do you<BR>> > have an<BR>> > existing ka-map demo setup so that we may demonstrate point<BR>> > collision?<BR>> ><BR>> > Cheers,<BR>> > Wayne<BR>> ><BR>> ><BR>> ><BR>> > ------------------------------------------------------------------------<BR>> > Search from any Web page with powerful protection. Get the FREE <BR>> > Windows Live Toolbar Today! Try it now! <BR>> > <http://get.live.com/toolbar/overview><BR><BR><br /><hr />Express yourself with gadgets on Windows Live Spaces <a href='http://discoverspaces.live.com?source=hmtag1&loc=us' target='_new'>Try it!</a></body>
</html>