protected void updateTempLineAfterMove(MouseEvent<?> event) {
if (tempLine == null) {
updateTempLineAfterClick();
}
if (currentLineStringCoordinates != null && currentLineStringCoordinates.length > 0) {
Coordinate[] newCoords = new Coordinate[currentLineStringCoordinates.length + 1];
System.arraycopy(currentLineStringCoordinates, 0, newCoords, 0, currentLineStringCoordinates.length);
newCoords[currentLineStringCoordinates.length] = getPanPosition(event);
LineString lineString = geometry.getGeometryFactory().createLineString(newCoords);
tempLine.setGeometry(lineString);
mapWidget.render(tempLine, RenderGroup.VECTOR, RenderStatus.UPDATE);
}
}
LineStringDrawController.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:geomajas-project-client-gwt
作者:
评论列表
文章目录