这是我设置代码得方式:
mapControl.getMap().getLayers().add(ds.getDatasets().get(0), true); mapControl.getMap().getLayers().get(0).setEditable(true); mapControl.setAction(Action.SELECT);
mapControl.addGeometrySelectedListener(this);
这是我添加几何对象到跟踪层得代码:
Point2D pt = featureSet.getGeometry().getInnerPoint(); TextPart part = new TextPart(); part.setAnchorPoint(pt); part.setText(mStake); GeoText text = new GeoText(part); mTrackingLayer.add(text,"text"); part.dispose(); text.dispose();
为什么点击添加得GeoText不能走到
geometrySelected