Hello Guy,

> Thanks for your sample code it works well now.

It's always nice to hear about things working :-)

> About the drawing I forgot to let you know
> that I finally succeed drawing my routes on the JMapPane by exending the
> JMapPane class itself
> but still need to do more by having an animated drawing as posted before.

I've written a little animated map demo to illustrate one possible approach.

http://svn.osgeo.org/geotools/trunk/demo/example/src/main/java/org/geotools/demo/swing/AnimatedMapPane.java

The application first prompts you for a shapefile to display. Then,
when you click on the map anywhere it generates a little random walk
path and draws it, in animated fashion, over the shapefile.

Note that it's in GeoTools 2.6 so, at the moment, if you want to
compile it you will need to use version 2.6-SNAPSHOT. However, you may
find that just examining the code and then adapting it to your own map
pane class is enough.

Please let me know how you go with it.

Michael

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to