From d3dc4f73e13f21629972d5c4d7145a1d9df6aa0d Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Mon, 25 May 2020 22:34:53 +0300 Subject: [PATCH] Add copirated for tencent --- .../widget/lib/maps/providers/tencent-map.ts | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.ts b/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.ts index 51c848c533..598bd7f357 100644 --- a/ui-ngx/src/app/modules/home/components/widget/lib/maps/providers/tencent-map.ts +++ b/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); + } }