更新图层说明
Showing
1 changed file
with
21 additions
and
0 deletions
| ... | @@ -50,3 +50,24 @@ GeoQ地图层 | ... | @@ -50,3 +50,24 @@ GeoQ地图层 |
| 50 | - AMAP_IMAGE,高德影像图层(不含路网,不含注记) | 50 | - AMAP_IMAGE,高德影像图层(不含路网,不含注记) |
| 51 | - AMAP_ROAD,高德路网图层(含路网,含注记) | 51 | - AMAP_ROAD,高德路网图层(含路网,含注记) |
| 52 | - AMAP_TRAFFIC,高德实时交通图层 | 52 | - AMAP_TRAFFIC,高德实时交通图层 |
| 53 | |||
| 54 | |||
| 55 | ## 基本用法 | ||
| 56 | |||
| 57 | 天地图2000 | ||
| 58 | ``` | ||
| 59 | t_vec = new TianDiTuTiledMapServiceLayer(TianDiTuLayerTypes.VEC_C); | ||
| 60 | mapView.addLayer(t_vec); | ||
| 61 | Point initPoint = new Point(121.56, 29.862149); | ||
| 62 | mapView.zoomToResolution(initPoint, t_vec.getRes()[16]); | ||
| 63 | ``` | ||
| 64 | |||
| 65 | 其它 | ||
| 66 | ``` | ||
| 67 | TencentMapsTiledServiceLayer tencentMapsTiledServiceLayer = new TencentMapsTiledServiceLayer(TencentMapLayerTypes.TENCENT_MAP_VECTOR); | ||
| 68 | mapView.addLayer(tencentMapsTiledServiceLayer); | ||
| 69 | // 经纬度坐标要换成web墨卡托 | ||
| 70 | Point pt = GISHelper.lonLat2Mercator(AppInfo.initPoint); | ||
| 71 | mapView.zoomToResolution(pt, tencentMapsTiledServiceLayer.getRes()[16]); | ||
| 72 | |||
| 73 | ``` | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment