Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
蒋波涛
/
landsurvey
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
71ffcc32
authored
2018-04-03 21:18:56 +0800
by
chiangbt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
给视图的中间添加了一个CrossHair
1 parent
7ed3a5ec
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
14 deletions
app/src/main/AndroidManifest.xml
app/src/main/java/com/pashanhoo/landsurvey/MainActivity.java
app/src/main/res/layout/activity_google_map.xml
app/src/main/res/layout/content_main.xml
app/src/main/AndroidManifest.xml
View file @
71ffcc3
...
...
@@ -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
...
...
app/src/main/java/com/pashanhoo/landsurvey/MainActivity.java
View file @
71ffcc3
...
...
@@ -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
.
C
IA_C_SD
);
t_cva
=
new
TianDiTuTiledMapServiceLayer
(
TianDiTuLayerTypes
.
C
VA_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"
;
...
...
app/src/main/res/layout/activity_google_map.xml
View file @
71ffcc3
...
...
@@ -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>
...
...
app/src/main/res/layout/content_main.xml
View file @
71ffcc3
...
...
@@ -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>
...
...
Please
register
or
sign in
to post a comment