71ffcc32 by chiangbt

给视图的中间添加了一个CrossHair

1 parent 7ed3a5ec
......@@ -16,9 +16,7 @@
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".BootActivity" >
</activity>
<activity android:name=".BootActivity"></activity>
<activity
android:name=".MainActivity"
android:label="@string/app_name"
......@@ -26,15 +24,12 @@
android:theme="@style/AppTheme.NoActionBar"> <!-- 禁止屏幕旋转 -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".GoogleMapActivity">
</activity>
<activity android:name=".BaiduMapActivity">
</activity>
<activity android:name=".GoogleMapActivity"></activity>
<activity android:name=".BaiduMapActivity"></activity>
</application>
</manifest>
\ No newline at end of file
......
......@@ -159,18 +159,18 @@ public class MainActivity extends AppCompatActivity {
});
// 添加地图图层
t_vec = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C_SD);
t_vec = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.VEC_C);
mapView.addLayer(t_vec);
t_cva = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C_SD);
t_cva = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CVA_C);
mapView.addLayer(t_cva);
// 一个本地sqlite数据库,注意其只有8-9级数据,因此在数据层中予以了显示控制
t_local = new TianDiTuLocalTiledMapServiceLayer("my.db", "IMG_C");
mapView.addLayer(t_local);
// 添加地图图层
t_img = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C_ZJ);
t_img = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C);
t_img.setVisible(false);
mapView.addLayer(t_img);
t_cia = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C_ZJ);
t_cia = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C);
t_cia.setVisible(false);
mapView.addLayer(t_cia);
mapType = "VEC";
......
......@@ -45,6 +45,14 @@
app:srcCompat="@mipmap/ic_my_location_white_48dp" />
</android.support.v7.widget.LinearLayoutCompat>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/epsg_target"
android:tint="@color/colorAccent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
</android.support.constraint.ConstraintLayout>
......
......@@ -13,4 +13,13 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"></com.esri.android.map.MapView>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/epsg_target"
android:tint="@color/colorAccent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"/>
</android.support.constraint.ConstraintLayout>
......