File tree Expand file tree Collapse file tree 9 files changed +13
-11
lines changed
Expand file tree Collapse file tree 9 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . ar = {
22 license_agreement : 'إتفاقية ترخيص' ,
33 work_on : 'يعمل بتطبيق 2GIS' ,
4- has_no_key : 'مفتاح مطلوب للعمل بشكل صحيح. يرجى التواصل مع api@2gis.com ' ,
4+ has_no_key : 'RasterJS API will be paid starting July 1. Contact api@2gis.ru to get a key ' ,
55 open_on : 'Open in 2GIS' ,
66 route_on : 'Route on 2GIS'
77} ;
Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . cs = {
22 license_agreement : 'Licenční smlouva' ,
3- has_no_key : 'Je potřeba klíč pro správné fungování. Kontaktujte prosím api@2gis.com ' ,
3+ has_no_key : 'RasterJS API will be paid starting July 1. Contact api@2gis.ru to get a key ' ,
44 work_on : 'Pracuje na API 2GIS'
55} ;
Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . en = {
22 license_agreement : 'License agreement' ,
3- has_no_key : 'A key is required for proper operation. Please contact api@2gis.com ' ,
3+ has_no_key : 'RasterJS API will be paid starting July 1. Contact api@2gis.ru to get a key ' ,
44 work_on : 'Uses 2GIS API'
55} ;
Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . es = {
22 license_agreement : 'Acuerdo de licencia' ,
3- has_no_key : 'Se necesita una clave para un funcionamiento correcto. Por favor, póngase en contacto con api@2gis.com ' ,
3+ has_no_key : 'RasterJS API will be paid starting July 1. Contact api@2gis.ru to get a key ' ,
44 work_on : '2GIS API'
55} ;
Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . it = {
22 license_agreement : 'Accordo di licenza' ,
3- has_no_key : 'È necessaria una chiave per il corretto funzionamento. Si prega di contattare api@2gis.com ' ,
3+ has_no_key : 'RasterJS API will be paid starting July 1. Contact api@2gis.ru to get a key ' ,
44 work_on : '2GIS API'
55} ;
Original file line number Diff line number Diff line change 11DG . Control . Attribution . Dictionary . ru = {
22 license_agreement : 'Лицензионное соглашение' ,
33 work_on : 'Работает на API 2ГИС' ,
4- has_no_key : 'Нужен ключ для корректной работы. Обратитесь api@2gis.com ' ,
4+ has_no_key : 'С 1 июля RasterJS API станет платным. Для работы нужен ключ. Помощь: api@2gis.ru ' ,
55 open_on : 'Открыть в 2ГИС' ,
66 route_on : 'Доехать с 2ГИС'
77} ;
Original file line number Diff line number Diff line change 2929 color : #333 !important ;
3030 font-family : Helvetica , Arial , sans-serif !important ;
3131 font-weight : bold !important ;
32+ white-space : normal ;
3233 }
3334
3435 .dg-attribution__logo-url {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ DG.ApiKeyValidator = DG.Class.extend({
4848 response . result &&
4949 ( ! response . result . service . is_active ||
5050 ! response . result . is_active ||
51- response . result . service . status . code !== 'ok'
51+ ! [ 'ok' , 'exceeded' ] . includes ( response . result . service . status . code )
5252 )
5353 ) ;
5454 } ,
Original file line number Diff line number Diff line change @@ -18,16 +18,17 @@ DG.Map.addInitHook(function() {
1818 var apiKey = this . options . key || DG . config . key ;
1919 var mapContainer = this . getContainer ( ) ;
2020 var validator = new DG . ApiKeyValidator ( apiKey , mapContainer ) ;
21+ var showCommPoi = ( this . options . showCommPoi ? '' : '&layerType=nc' ) ;
2122 validator . validateKeyResponse ( ) ;
2223
23- var tileUrl = DG . config . secureProtocol + ( DG . Browser . retina ? DG . config . retinaTileServer : DG . config . tileServer ) ;
24+ var tileUrl = DG . config . secureProtocol + ( DG . Browser . retina ? DG . config . retinaTileServer : DG . config . tileServer ) + showCommPoi ;
2425 var arabicTileUrl = DG . config . secureProtocol +
25- ( DG . Browser . retina ? DG . config . arabicRetinaTileServer : DG . config . arabicTileServer ) ;
26+ ( DG . Browser . retina ? DG . config . arabicRetinaTileServer : DG . config . arabicTileServer ) + showCommPoi ;
2627
2728 var previewTileUrl = DG . config . secureProtocol +
28- ( DG . Browser . retina ? DG . config . previewRetinaTileServer : DG . config . previewTileServer ) ;
29+ ( DG . Browser . retina ? DG . config . previewRetinaTileServer : DG . config . previewTileServer ) + showCommPoi ;
2930 var arabicPreviewTileUrl = DG . config . secureProtocol +
30- ( DG . Browser . retina ? DG . config . arabicPreviewRetinaTileServer : DG . config . arabicPreviewTileServer ) ;
31+ ( DG . Browser . retina ? DG . config . arabicPreviewRetinaTileServer : DG . config . arabicPreviewTileServer ) + showCommPoi ;
3132
3233 this . baseLayer = new BaseLayer ( tileUrl , {
3334 subdomains : '0123' ,
You can’t perform that action at this time.
0 commit comments