Here is some old code that I used to automatically zoom to an area of
interest based on some basic parameters:-

ReferencedEnvelope viewArea = new
ReferencedEnvelope(minX,maxX,miny,maxy,CoordinateReferenceSystem);
mapPane.setDisplayArea(viewArea);
mapPane.repaint();

WARNING : GeoTools 2.6.3, it was some time ago. Hopefully it is still valid.
With some additional code you should be able to automatically zoom and pan
the map with this...I think

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/How-to-develop-a-real-application-with-GeoTools-tp4473361p4476371.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to