71ffcc32 by chiangbt

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

1 parent 7ed3a5ec
...@@ -16,9 +16,7 @@ ...@@ -16,9 +16,7 @@
16 android:label="@string/app_name" 16 android:label="@string/app_name"
17 android:supportsRtl="true" 17 android:supportsRtl="true"
18 android:theme="@style/AppTheme"> 18 android:theme="@style/AppTheme">
19 <activity android:name=".BootActivity" > 19 <activity android:name=".BootActivity"></activity>
20
21 </activity>
22 <activity 20 <activity
23 android:name=".MainActivity" 21 android:name=".MainActivity"
24 android:label="@string/app_name" 22 android:label="@string/app_name"
...@@ -26,15 +24,12 @@ ...@@ -26,15 +24,12 @@
26 android:theme="@style/AppTheme.NoActionBar"> <!-- 禁止屏幕旋转 --> 24 android:theme="@style/AppTheme.NoActionBar"> <!-- 禁止屏幕旋转 -->
27 <intent-filter> 25 <intent-filter>
28 <action android:name="android.intent.action.MAIN" /> 26 <action android:name="android.intent.action.MAIN" />
27
29 <category android:name="android.intent.category.LAUNCHER" /> 28 <category android:name="android.intent.category.LAUNCHER" />
30 </intent-filter> 29 </intent-filter>
31 </activity> 30 </activity>
32 <activity android:name=".GoogleMapActivity"> 31 <activity android:name=".GoogleMapActivity"></activity>
33 32 <activity android:name=".BaiduMapActivity"></activity>
34 </activity>
35 <activity android:name=".BaiduMapActivity">
36
37 </activity>
38 </application> 33 </application>
39 34
40 </manifest> 35 </manifest>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -159,18 +159,18 @@ public class MainActivity extends AppCompatActivity { ...@@ -159,18 +159,18 @@ public class MainActivity extends AppCompatActivity {
159 }); 159 });
160 160
161 // 添加地图图层 161 // 添加地图图层
162 t_vec = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C_SD); 162 t_vec = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.VEC_C);
163 mapView.addLayer(t_vec); 163 mapView.addLayer(t_vec);
164 t_cva = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C_SD); 164 t_cva = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CVA_C);
165 mapView.addLayer(t_cva); 165 mapView.addLayer(t_cva);
166 // 一个本地sqlite数据库,注意其只有8-9级数据,因此在数据层中予以了显示控制 166 // 一个本地sqlite数据库,注意其只有8-9级数据,因此在数据层中予以了显示控制
167 t_local = new TianDiTuLocalTiledMapServiceLayer("my.db", "IMG_C"); 167 t_local = new TianDiTuLocalTiledMapServiceLayer("my.db", "IMG_C");
168 mapView.addLayer(t_local); 168 mapView.addLayer(t_local);
169 // 添加地图图层 169 // 添加地图图层
170 t_img = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C_ZJ); 170 t_img = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.IMG_C);
171 t_img.setVisible(false); 171 t_img.setVisible(false);
172 mapView.addLayer(t_img); 172 mapView.addLayer(t_img);
173 t_cia = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C_ZJ); 173 t_cia = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.CIA_C);
174 t_cia.setVisible(false); 174 t_cia.setVisible(false);
175 mapView.addLayer(t_cia); 175 mapView.addLayer(t_cia);
176 mapType = "VEC"; 176 mapType = "VEC";
......
...@@ -45,6 +45,14 @@ ...@@ -45,6 +45,14 @@
45 app:srcCompat="@mipmap/ic_my_location_white_48dp" /> 45 app:srcCompat="@mipmap/ic_my_location_white_48dp" />
46 46
47 </android.support.v7.widget.LinearLayoutCompat> 47 </android.support.v7.widget.LinearLayoutCompat>
48 48 <ImageView
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
51 android:src="@drawable/epsg_target"
52 android:tint="@color/colorAccent"
53 app:layout_constraintStart_toStartOf="parent"
54 app:layout_constraintEnd_toEndOf="parent"
55 app:layout_constraintBottom_toBottomOf="parent"
56 app:layout_constraintTop_toTopOf="parent"/>
49 57
50 </android.support.constraint.ConstraintLayout> 58 </android.support.constraint.ConstraintLayout>
......
...@@ -13,4 +13,13 @@ ...@@ -13,4 +13,13 @@
13 android:layout_width="fill_parent" 13 android:layout_width="fill_parent"
14 android:layout_height="fill_parent"></com.esri.android.map.MapView> 14 android:layout_height="fill_parent"></com.esri.android.map.MapView>
15 15
16 <ImageView
17 android:layout_width="wrap_content"
18 android:layout_height="wrap_content"
19 android:src="@drawable/epsg_target"
20 android:tint="@color/colorAccent"
21 app:layout_constraintStart_toStartOf="parent"
22 app:layout_constraintEnd_toEndOf="parent"
23 app:layout_constraintBottom_toBottomOf="parent"
24 app:layout_constraintTop_toTopOf="parent"/>
16 </android.support.constraint.ConstraintLayout> 25 </android.support.constraint.ConstraintLayout>
......