>> Rectangle2D.Double newArea = new Rectangle2D.Double( >> newX,newY,area.getWidth(),area.getHeight()); >> m_model.getMapPane().setVisibleArea(newArea) >> > ^^^^^^^^^^^^^^^^^^^^^^^^^ > The setVisibleArea-method one lets assume, that you are using the > StyledMapPane (and the J2D-Renderer)? > I can't use it, because the shapefile I have to render is way too big to > be handled without any MemoryExceptions. That's why I have to use the > LiteRenderer. Unfortunately there is no comparable thing as the > VisibleArea when using the LiteRenderer :(
Oh, sorry. I didn't recognize that. It's not easy to get into Geotools because of all these different ways to do things... My Map isn't that big so I don't have any memory problems, but it's good to know about that. Another already mentioned bad thing about my Example is that it re-renders the map every Pixel that it is moved. > But thanks anyways: Your code is exactly what I was looking for, when > getting in contact with geotools the first time. I guess there are lot > of people, you made happy with that snippet :) That would be great :) In addition to this I do absolutely agree with the issue "GUI-Components besides uDig needed" mentioned again in this thread. Putting that into a widget-project is a good approach, i think. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
