您好,是这两处有问题吗
//加载线数据集并设置风格 m_layerLine = mMapControl.getMap().getLayers().add(m_datasetLine, true); m_layerLine.setSelectable(false); LayerSettingVector lineSetting = (LayerSettingVector)m_layerLine .getAdditionalSetting(); GeoStyle lineStyle = new GeoStyle(); lineStyle.setLineColor(new Color(0, 0, 255)); lineStyle.setLineWidth(0.1); lineSetting.setStyle(lineStyle); mMapControl.getMap().viewEntire(); mMapControl.getMap().refresh();
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestPermissions(); // 初始化环境,设置许可路径 Environment.setLicensePath(sdcard+"/supermap1/license/"); //设置一些系统需要用到的路径 Environment.initialization(this); setContentView(R.layout.activity_findpath2); initUI(); initialize(); }