Re: Route animation in google maps with GWT

2010-11-01 Thread Blagoja Chavkoski
Hi, From the code I cant really say whats the problem..looks ok... should show the polylone at list if is added with a weight 0 but on the otehr hand i see a lot of short comings .. some of those... 1. the timer is to fast.. 2 . the insert vertex mehtod is going to be killing slow if u have

Re: Route animation in google maps with GWT

2010-11-01 Thread Jan
Hi B, Thanks for your answers. I found the error. For setting the schedule, i used the method timer.schedule()..The thing with that method is, that the timers run method is called only one time..so now i use the method timer.scheduleRepeating() and it works perfectly..in my example, i have 370

Re: Route animation in google maps with GWT

2010-11-01 Thread Blagoja Chavkoski
Hi, Thats the way to go...wosent that hard :) Chears, B On Mon, Nov 1, 2010 at 1:34 PM, Jan jan.widm...@gmx.ch wrote: Hi B, Thanks for your answers. I found the error. For setting the schedule, i used the method timer.schedule()..The thing with that method is, that the timers run method

Re: Route animation in google maps with GWT

2010-10-29 Thread Jan
Hi Brian, Thanks for your answer. I tried some things with the array and timer and that staff. I tried with wait(), sleep() and also with a timer object. But everytime, there comes an error, that these things are not supported by gwt.. The easiest way would be to have the normal callback, which

Re: Route animation in google maps with GWT

2010-10-29 Thread Blagoja Chavkoski
hi, This is the scenario u need to do..I implement this in a program used for a vehicle tracking... 1. get all the data u need to animate(all LatlLon positions) and store them in a arraylist 2. start one timer (gwt timer ) let me say witch will fire on every 100ms (U have to test what will be

Re: Route animation in google maps with GWT

2010-10-29 Thread Blagoja Chavkoski
I just want to say that for the statment (and no way that can be done) im wrong :) there is a GWT gear lib witch start multiple threads in a browser but this is totally diff then what is a real thread in a programming language :) but in any case it has the same mining.. On Fri, Oct 29, 2010 at

Re: Route animation in google maps with GWT

2010-10-29 Thread Jan
Hi B, Thanks for your answers. I tried it like this: In the class shipAnimation in the method onSuccess(), which is called after successful rpc callback, i wrote the following code: LatLng[] animationPoints = new LatLng[1]; animationPoints[0]=start; Polyline animatedWay

Re: Route animation in google maps with GWT

2010-10-26 Thread Jan
Hi Chad, thanks for your answers. You pretty much got me out of trouble.. :-) But there are still one or two questions: - Your marker (arrow) change his angle adjustement. How did you do that? Because i didn't found a possibility to set the angle.. - What kind of Elements are used in your Tim

Re: Route animation in google maps with GWT

2010-10-11 Thread Brian
GWT is Javascript, at least what the user sees on the website. One idea, is to get all the data from your server for a ship's route as an array of lat/lng objects, then set up a Timer() object that calls your callback every 30ms or so, and you just set the map marker position to the next entry

Re: Route animation in google maps with GWT

2010-10-11 Thread Chad
Jan, You can do it all with GWT. You can see a partial example of it here: http://www.dtrac.us/hmr.html I say partial because that page is setup for a race that takes place in the future so there aren't any position reports to show yet. But, even without that, you can see how the time line and