if (featureTransaction.getNewFeatures() != null && featureTransaction.getNewFeatures().length > 0
&& tempLine1 == null) {
Coordinate position = getPanPosition(event);
Geometry geom = getGeometryIndex().getGeometry(featureTransaction);
LineString lineString = geom.getGeometryFactory().createLineString(new Coordinate[] { position, position });
tempLine1 = new GfxGeometry("LineStringEditController.updateLine1");
tempLine1.setGeometry(lineString);
tempLine1.setStyle(new ShapeStyle("#FFFFFF", 0, "#FF3322", 1, 1));
mapWidget.render(tempLine1, RenderGroup.VECTOR, RenderStatus.ALL);
tempLine2 = new GfxGeometry("LineStringEditController.updateLine2");
tempLine2.setGeometry(lineString);
tempLine2.setStyle(new ShapeStyle("#FFFFFF", 0, "#FF3322", 1, 1));
mapWidget.render(tempLine2, RenderGroup.VECTOR, RenderStatus.ALL);
}
}