刚刚那条消息最上边那两张图片就是返回值,只有一个点串,获取的所有信息都给在图片里.没有别的返回值了,parts有什么用?应该怎么解决?
下边是我显示出来多一条线的代码:
if(count>0){ Point2Ds point2Ds=new Point2Ds(); Point2D[] ps=new Point2D[featuresResult.features[a].geometry.points.length]; for(int i=0;i<featuresResult.features[a].geometry.points.length;i++){ Point2D point2d =new Point2D(); point2d.setX(featuresResult.features[a].geometry.points[i].x); point2d.setY(featuresResult.features[a].geometry.points[i].y); point2Ds.add(point2d); ps[i]=point2d; } GeoStyle geoStyle=new GeoStyle(); geoStyle.setFillBackColor(new com.supermap.data.Color(Color.parseColor("#4876FF"))); geoStyle.setFillOpaqueRate(40); GeoRegion region=new GeoRegion(point2Ds); region.getArea(); region.setStyle(geoStyle); mapControl.getMap().getTrackingLayer().add(region,"regoinsq"); }