1426338c by chiangbt

更新图层说明

1 parent 46d14194
Showing 1 changed file with 21 additions and 0 deletions
......@@ -50,3 +50,24 @@ GeoQ地图层
- AMAP_IMAGE,高德影像图层(不含路网,不含注记)
- AMAP_ROAD,高德路网图层(含路网,含注记)
- AMAP_TRAFFIC,高德实时交通图层
## 基本用法
天地图2000
```
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]);
```
其它
```
TencentMapsTiledServiceLayer tencentMapsTiledServiceLayer = new TencentMapsTiledServiceLayer(TencentMapLayerTypes.TENCENT_MAP_VECTOR);
mapView.addLayer(tencentMapsTiledServiceLayer);
// 经纬度坐标要换成web墨卡托
Point pt = GISHelper.lonLat2Mercator(AppInfo.initPoint);
mapView.zoomToResolution(pt, tencentMapsTiledServiceLayer.getRes()[16]);
```
\ No newline at end of file
......