Browse Source

Add copirated for tencent

pull/2835/head
Vladyslav_Prykhodko 6 years ago
parent
commit
d3dc4f73e1
  1. 22
      ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.ts

22
ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.ts

@ -20,13 +20,17 @@ import LeafletMap from '../leaflet-map';
import { UnitedMapSettings } from '../map-models';
export class TencentMap extends LeafletMap {
constructor($container, options: UnitedMapSettings) {
super($container, options);
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 txLayer = L.tileLayer(txUrl, { subdomains: '0123', tms: true }).addTo(map);
txLayer.addTo(map);
super.setMap(map);
super.initSettings(options);
}
constructor($container, options: UnitedMapSettings) {
super($container, options);
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 txLayer = L.tileLayer(txUrl, {
subdomains: '0123',
tms: true,
attribution: '©2020 Tencent - GS(2018)2236号- Data© NavInfo'
}).addTo(map);
txLayer.addTo(map);
super.setMap(map);
super.initSettings(options);
}
}

Loading…
Cancel
Save