Plus, after debug, my idea, that setting the background of the GPS is null
after PAN or ZOOM, solves my problem.
However, I feel this is not the best way.
Can anybody tell me how to solve my problem?
在 2015-03-02 21:41:40,"wbh" <wangbaohua2...@163.com> 写道:
Dears,
I have a simple app which displays the vehicle's current position.
-------------------my way------------------------
1 use socket to receive and send vehicle's position (Lon, Lat)
2 extend DirectLayer to GpsDirectLayer, which have an ArrayList to store all of
the GPS point
3 when socket receives a GPS, add it to the ArrayList and call Draw() method of
GpsDirectLayer. In this method, erase the previous point and draw the latest
GPS. (Thanks Michael Bedward for the FlyingSaucer demo ^^)
4 In eras() method, get the background of the GPS (use Raster) before draw it
-------------------my problem------------------
If no PAN, ZOOM operation, all goes well. But when PAN and ZOOM, all layers are
redrawn (I think). So the stored raster for the background is no longer
available (or needed).
What can I do to avoid this?
My first idea is set the background is null when PAN or ZOOM is performed, is
that the correct way?
Thanks in advance!
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users