4165197e by chiangbt

更新图层说明

1 parent 1426338c
...@@ -67,7 +67,8 @@ mapView.zoomToResolution(initPoint, t_vec.getRes()[16]); ...@@ -67,7 +67,8 @@ mapView.zoomToResolution(initPoint, t_vec.getRes()[16]);
67 TencentMapsTiledServiceLayer tencentMapsTiledServiceLayer = new TencentMapsTiledServiceLayer(TencentMapLayerTypes.TENCENT_MAP_VECTOR); 67 TencentMapsTiledServiceLayer tencentMapsTiledServiceLayer = new TencentMapsTiledServiceLayer(TencentMapLayerTypes.TENCENT_MAP_VECTOR);
68 mapView.addLayer(tencentMapsTiledServiceLayer); 68 mapView.addLayer(tencentMapsTiledServiceLayer);
69 // 经纬度坐标要换成web墨卡托 69 // 经纬度坐标要换成web墨卡托
70 Point pt = GISHelper.lonLat2Mercator(AppInfo.initPoint); 70 Point initPoint = new Point(121.56, 29.862149);
71 Point pt = GISHelper.lonLat2Mercator(initPoint);
71 mapView.zoomToResolution(pt, tencentMapsTiledServiceLayer.getRes()[16]); 72 mapView.zoomToResolution(pt, tencentMapsTiledServiceLayer.getRes()[16]);
72 73
73 ``` 74 ```
...\ No newline at end of file ...\ No newline at end of file
......