hi all,
I am trying to modify the demolayer code so that it wd diplay
co-ordinates (lat/long) as taken from a file. This i hv managed to do.
Right now i am trying to include a Thread in the DemoLayer so that
the co-ordinates from the file is taken at regular intervals, but i am
running into problems here. I do not get any errors but the point fails
to show up. I am briefing what i hv done here..
i added the implementation of Runnable to DemoLayer.
in init() i instantiated a Thread t=new Thread(this);
t.start();
then i made another method run() and called
for(;;){
Properties p=new Properties();
p.load(myfile);
point.setLat(lat from myfile);
point.setLong(long from myfile);
omList.add(point);
omList.render();
t.sleep(500);
}
But this does not show any point. But when i take out the thread inplementation
the point is shown as picked up from myfile, and when i change the Lat Long
in the file..refreshing the screen updates the points. Is there something i am missing
here. Or do i need to use some thing else to update and repaint my DemoLayer.
THanks in adv..
anoop
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Tue Dec 4 23:30:33 2001
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:32 EDT