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
c3145696
authored
2018-03-30 21:55:51 +0800
by
chiangbt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标注更新
1 parent
68b3626a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
readme.md
readme.md
View file @
c314569
...
...
@@ -57,19 +57,23 @@ GeoQ地图层
## 基本用法
天地图2000
```
```
java
t_vec
=
new
TianDiTuTiledMapServiceLayer
(
TianDiTuLayerTypes
.
VEC_C
);
mapView
.
addLayer
(
t_vec
);
Point
initPoint
=
new
Point
(
121.56
,
29.862149
);
mapView
.
zoomToResolution
(
initPoint
,
t_vec
.
getRes
()[
16
]);
```
百度地图
```
java
其它(以Tencent图层为例)
```
其它(以Tencent图层为例)
```
java
TencentMapsTiledServiceLayer
tencentMapsTiledServiceLayer
=
new
TencentMapsTiledServiceLayer
(
TencentMapLayerTypes
.
TENCENT_MAP_VECTOR
);
mapView
.
addLayer
(
tencentMapsTiledServiceLayer
);
// 经纬度坐标要换成web墨卡托
Point initPoint =
new Point(121.56, 29.862149
);
// 经纬度坐标要
转换为GCJ02后,再
换成web墨卡托
Point
initPoint
=
JZLocationConverter
.
wgs84ToGcj02
(
new
Point
(
121.56
,
29.862149
)
);
Point
pt
=
GISHelper
.
lonLat2Mercator
(
initPoint
);
mapView
.
zoomToResolution
(
pt
,
tencentMapsTiledServiceLayer
.
getRes
()[
16
]);
...
...
Please
register
or
sign in
to post a comment