Hello Robert, > exactly, i was interaction directly with the mapcontext, saw some results, > but couldn't do no pan.
You didn't mention panning in your original question :) If you are trying to alter the display programmatically you will almost always interact with JMapPane, not the MapContext instance. > idea is that from the entire mapcontext, i do some zoom-in on a small > specific area just like the zoom-in button from the toolbar does. i just > have to specify the coordinates of the position i want to make the zoom. Yes. So if you have a look at the code for the zoom tool you will see that it is just using the JMapPane.setDisplayArea method: http://svn.osgeo.org/geotools/tags/2.7.1/modules/unsupported/swing/src/main/java/org/geotools/swing/tool/ZoomInTool.java In particular, if you study the onMouseReleased and onMouseClicked methods it should be obvious how to do the same thing in your own program. But if you get stuck, please feel free to ask here again. Michael ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
