[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Selection rendering problem.
|
Try removing the layer.refresh( null ) for a bit and see if that helps (simply zooming should be enough to get the screen to redraw). Other than that I think
you will need to ask Jesse.
Jody
On Fri, Feb 20, 2009 at 1:50 AM, Eugene B.
<st.vinsent@xxxxxxxxx> wrote:
Hi,
I’m implementing “zoom to” functionality in my application. Which includes
two steps: zooming to specific feature and its selection.
But I’ve faced one problem – approximately in 1 of 5 times selection doesn’t
renderers. But after user makes pan or zoom action manually it shows
correctly.
This is my code:
SetViewportBBoxCommand zoomToCommand = new
SetViewportBBoxCommand(myEnvelope);
SelectionCommandFactory selectionFactory =
SelectionCommandFactory.getInstance();
UndoableMapCommand selectCommand =
selectionFactory.createSelectCommand(myLayer, filter);
ApplicationGIS.getActiveMap().sendCommandSync(selectCommand);
ApplicationGIS.getActiveMap().sendCommandSync(zoomToCommand);
myLayer.refresh(null);
Also I’ve tried approach with one composite command but result was the same.
I would appreciate any help regarding this topic.
Best regards,
Eugene
--
View this message in context: http://www.nabble.com/Selection-rendering-problem.-tp22100020p22100020.html
Sent from the udig-devel mailing list archive at Nabble.com.
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel