@@ -19,7 +19,7 @@ export default class ThirdPartyLayer extends BaseLayer {
1919 * 添加谷歌服务地址
2020 * @function module:客户端数据服务.ThirdPartyLayer.prototype.appendGoogleMap
2121 * @param {Object } optionsParam 预留扩展参数
22- * @param {String } optionsParam.ptype 类型:矢量‘ m@207000000’ 影像‘ s@130’ 栅格‘ t@130,r@207000000 道路‘ h@207000000’
22+ * @param {String } optionsParam.ptype 类型:矢量' m@207000000' 影像' s@130' 栅格' t@130,r@207000000' 道路' h@207000000'
2323 * @returns 瓦片层对象 可用于操作移除
2424 * @example
2525 * let tilelayer = thirdLayer.appendGoogleMap({ptype:'m@207000000' });
@@ -33,7 +33,7 @@ export default class ThirdPartyLayer extends BaseLayer {
3333 if ( offset ) {
3434 offsetLabel = '&gl=cn' ;
3535 }
36- let _url = `http://mt{s}.google.cn/vt/{type}&hl=zh-CN${ offsetLabel } &x={x}&y={y}&z={z}&s=Galileo` ;
36+ let _url = `http://mt{s}.google.cn/vt/lyrs= {type}&hl=zh-CN${ offsetLabel } &x={x}&y={y}&z={z}&s=Galileo` ;
3737 _url = _url . replace ( '{type}' , options . ptype ) ;
3838 const googleMap = this . viewer . imageryLayers . addImageryProvider (
3939 new Cesium . GoogleMapProvider ( {
@@ -48,11 +48,12 @@ export default class ThirdPartyLayer extends BaseLayer {
4848 * @function module:客户端数据服务.ThirdPartyLayer.prototype.appendGoogleMapExt
4949 * @param {Object } optionsParam 参数
5050 * @param {Object } optionsParam.ptype {ptype:'s'} 类型
51- * s:卫星地图
52- * h:skeleton map light
53- * m:全地图
54- * r:skeleton map dark
55- * t:地形图
51+ * m:路线图
52+ * t:地形图
53+ * p:带标签的地形图
54+ * s:卫星图
55+ * y:带标签的卫星图
56+ * h:标签层(路名、地名等)
5657 * 也可以进行组合,例如:s,r 或者 t,h
5758 * @returns {ImageryLayer } 瓦片层对象 可用于操作移除
5859 * @example
@@ -67,7 +68,7 @@ export default class ThirdPartyLayer extends BaseLayer {
6768 * 添加高德地图服务
6869 * @function module:客户端数据服务.ThirdPartyLayer.prototype.appendGaodeMap
6970 * @param {Object } optionsParam 参数
70- * @param {String } optionsParam.ptype 地图类型:'vec', 'raod ', 'img'
71+ * @param {String } optionsParam.ptype 地图类型:'vec', 'road ', 'img'
7172 * @param {Number } [optionsParam.maximumLevel = 16] 最大级别
7273 * @returns 瓦片层对象
7374 * @example
@@ -119,6 +120,7 @@ export default class ThirdPartyLayer extends BaseLayer {
119120 * @function module:客户端数据服务.ThirdPartyLayer.prototype.appendOpenWeatherMap
120121 * @param {Object } optionsParam 参数
121122 * @param {Type } optionsParam.ptype 类型有: Pressure,Temperature,Windspeed,Clouds,Label
123+ * @param {String } optionsParam.appid 授权码
122124 * @returns {ImageryLayer } 瓦片层对象
123125 * @example
124126 * let tilelayer = thirdLayer.appendOpenWeatherMap({ptype:'Label',appid:'b1b15e88fa797225412429c150c122a1'});
0 commit comments