Hi Martin, You are boldly going where few have gone before :) Although there has been a bit of discussion about animating features over a map I don't know that anyone has done much on it yet.
I think that the easiest approach is to keep the drawing of animated features (sprites) separate from map rendering. I've just committed a replacement animation demo to illustrate one possible approach. It displays a map of the world, then moves a flying saucer (actually the GeoTools compass logo) over it. The map is only rendered when initially displayed or when you resize the frame. Drawing the sprite involves saving the section of the map image that it is about to cover so that it can be blitted back to the screen when the sprite moves on. The demo is pretty rough and ready (I'd welcome suggestions from graphics gurus out there as to how to make the animation smoother) but it illustrates one basic approach that might be useful to you and is a lot simpler than the previous animation demo. You can find it here: http://svn.osgeo.org/geotools/branches/2.6.x/demo/example/src/main/java/org/geotools/demo/swing/FlyingSaucer.java The shapefile and sprite image that it uses are in the resources dir: http://svn.osgeo.org/geotools/branches/2.6.x/demo/example/src/main/resources/ Hope this gives you some ideas. Let me know how you go. Michael ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
