dvgis / dc-sdk

DC-SDK is based on the open source project Cesium for the second development of two three-dimensional WebGis application framework , the framework optimizes the use of Cesium and adds some additional features , designed for developers to quickly build WebGis application.🌎
http://dc.dvgis.cn
Apache License 2.0
827 stars 256 forks source link

关于 百度或谷歌离线瓦片的加载 #62

Closed 156704883 closed 3 years ago

156704883 commented 3 years ago

let baselayer_img = DC.ImageryLayerFactory.createBaiduImageryLayer({ style:'normal', url:"http://x.x.x.x/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl" 这个参数是无效的 //crs:'WGS84' })

156704883 commented 3 years ago

如何自定义 这个 瓦片的 url ,用于本地离线地图的加载呢

cavencj commented 3 years ago

目前使用的url时互联网上默认的 , 如果要使用本地,可以将

let baselayer_img = DC.ImageryLayerFactory.createBaiduImageryLayer({
//crs:'WGS84'
})
baselayer_img._url = 'http://x.x.x.x/tile/?qt=tile&x={x}&y={y}&z={z}&styles=pl'

进行强制替换