使用产品:SuperMap iMobile 9D(2019)(V9.1.2)SuperMap iMobile 9D(2019) SP2 for Android(精简绿色包) 操作系统:win10 x64
数据类型: 文件型
问题详细描述:iMobile Android二维地图查询出来之后不能改变颜色。参考的例子\SampleCode\BoundsQuery,设置颜色不管用 然后所有数据都加上了绿色的线。
GeoStyle geoStyle_L = new GeoStyle();
geoStyle_L.setLineColor(new Color(0,0,255));
geoStyle_L.setLineSymbolID(15);
geoStyle_L.setLineWidth(500.0);
Point2Ds point2Ds = new Point2Ds();
Point2D[] point2DArray = {new Point2D(geometry.getPart(0).getItem(0).getX(), geometry.getPart(0).getItem(0).getY()), new Point2D(geometry.getPart(0).getItem(1).getX(), geometry.getPart(0).getItem(1).getY())};
point2Ds.addRange(point2DArray);
GeoLine geoLine = new GeoLine(point2Ds);
geoLine.setStyle(geoStyle_L);