Add copirated for tencent
This commit is contained in:
parent
8f880da13d
commit
d3dc4f73e1
@ -24,7 +24,11 @@ export class TencentMap extends LeafletMap {
|
|||||||
super($container, options);
|
super($container, options);
|
||||||
const txUrl = 'http://rt{s}.map.gtimg.com/realtimerender?z={z}&x={x}&y={y}&type=vector&style=0';
|
const txUrl = 'http://rt{s}.map.gtimg.com/realtimerender?z={z}&x={x}&y={y}&type=vector&style=0';
|
||||||
const map = L.map($container).setView(options?.defaultCenterPosition, options?.defaultZoomLevel);
|
const map = L.map($container).setView(options?.defaultCenterPosition, options?.defaultZoomLevel);
|
||||||
const txLayer = L.tileLayer(txUrl, { subdomains: '0123', tms: true }).addTo(map);
|
const txLayer = L.tileLayer(txUrl, {
|
||||||
|
subdomains: '0123',
|
||||||
|
tms: true,
|
||||||
|
attribution: '©2020 Tencent - GS(2018)2236号- Data© NavInfo'
|
||||||
|
}).addTo(map);
|
||||||
txLayer.addTo(map);
|
txLayer.addTo(map);
|
||||||
super.setMap(map);
|
super.setMap(map);
|
||||||
super.initSettings(options);
|
super.initSettings(options);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user