We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { WMTSTileLayer } from 'maptalks.wmtstilelayer' let map = new maptalks.Map('map', { center: [105.08052356963802, 36.04231948670001], zoom: 4, minZoom:1, maxZoom:18, spatialReference:{ projection:'EPSG:4326' }, baseLayer: new WMTSTileLayer('base', { tileSystem : [1, -1, -180, 90], layer:'vec', tilematrixset:'c', format:'tiles', urlTemplate:'http://t{s}.tianditu.com/vec_c/wmts?tk=64a504e50b1f7d53ggggec3d86f4a522f86b', subdomains:['1', '2', '3', '4', '5'], attribution : '© <a target="_blank" href="http://www.tianditu.cn">Tianditu</a>' }), layers : [ new WMTSTileLayer('road', { layer:'cva', tilematrixset:'c', format:'tiles', urlTemplate:'http://t{s}.tianditu.com/cva_c/wmts?tk=64a504e50b1ffff7d53ec3d86f4a522f86b', subdomains:['1', '2', '3', '4', '5'], opacity:1 }) ] })
The text was updated successfully, but these errors were encountered:
@yangyang158 上面贴出来的代码,天地图 key有问题,更换 tk 后,地图正常显示。
Sorry, something went wrong.
感谢,已解决了
No branches or pull requests
The text was updated successfully, but these errors were encountered: