Hi, thanks Arnd, however in my case I`m adding a point to line feature, or simple the animation is a line reaching from one point to another, I was hopping to use openLayers.Tween but I canot get the idea, Why I cannot use setInterval from native javascript is that after all the points have been added I have to remove the featire and put a line with two points only. Thanks for the links.
regards, Imran On Tue, Oct 26, 2010 at 10:18 PM, Arnd Wippermann <[email protected]> wrote: > Hi, > > An example from OpenLayers > http://openlayers.org/dev/examples/rotate-features.html > > And one own > http://gis.ibbeck.de/ginfo/apps/Pentominoes/pentominoes.html > > In short > > You change the geometry of a feature and then you have to redraw the feature > > feature.geometry.rotate(angle, origin); > feature.layer.drawFeature(feature); > > Arnd > > -----Ursprüngliche Nachricht----- > Von: [email protected] > [mailto:[email protected]] Im Auftrag von Imran > Rajjad > Gesendet: Dienstag, 26. Oktober 2010 07:28 > An: <[email protected]> > Betreff: [OpenLayers-Users] animation in openlayers > > is it possible to modify the geometry of a feature after its added to a > vector layer? I`m trying to create an animation of a moving point object on > OpenLayers, probably I will have to alter the lat long of the geometry, I > wanted to know if someone has already tried that? any links or docs would be > appericiated, and secondly can a gif animation file be used as graphic > marker through style object given the fact that the animation file works. > > regards, > Imran > > -- > I.R > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- I.R _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
