PageSourceSearch

https://siana.ru/company/assets/js/dots.js?29529

js siana.ru collected 2026-10-08 13:07:43 UTC 19,777 bytes, 350 lines download raw bytes

1$(function(){
2	
3	let zoomval = 3;
4	let startYcenter = 66;
5	let startXcenter = 100;
6		
7		var viewport = {
8			width : $(window).width(),
9			height : $(window).height()
10		};
11		
12		var width = viewport.width;
13		var height = viewport.height;
14
15		 
16		if (width > 1400) {
17			zoomval = 2.5;
18			startYcenter = 100;
19			startXcenter = 66;
20		}
21		if (width < 1400 && width > 1000) {
22			zoomval = 2;
23			startYcenter = 90;
24			startXcenter = 55; 
25		}
26		
27		if (width < 600) {
28			startXcenter = 55;
29			startYcenter = 80;
30			zoomval = 1.5;
31		}
32		
33	console.log(width+' '+startYcenter+' '+startXcenter+' '+zoomval);
34		
35	// map script
36	window.onresize = function(event) {
37		let zoomval = 2;
38		
39		var viewport = {
40			width : $(window).width(),
41			height : $(window).height()
42		};
43		
44		var width = viewport.width;
45		var height = viewport.height;
46
47		if (width > 1400) {
48			zoomval = 2.5;
49			startYcenter = 100;
50			startXcenter = 66;
51		}
52		if (width < 1400 && width > 1000) {
53			zoomval = 2;
54			startYcenter = 90;
55			startXcenter = 55; 
56		}
57		
58		if (width < 600) {
59			startXcenter = 55;
60			startYcenter = 80;
61			zoomval = 1.5;
62		}
63	};
64	
65	ymaps.ready(['projection.LambertConformalConic']).then(function init() {
66    // Создаем проекцию Ламберта.
67    var LAMBERT_PROJECTION = new ymaps.projection.LambertConformalConic();
68    // Создаем карту.
69    var map = new ymaps.Map('map', {
70       center: [ startXcenter , startYcenter ],
71        zoom: zoomval,
72        type: null,
73        controls: ["zoomControl"]
74		 
75		
76    }, {
77
78        // Задаем проекцию Ламберта.
79        projection: LAMBERT_PROJECTION
80    }),
81        yellowCollection = new ymaps.GeoObjectCollection(null,{
82            preset: 'islands#circleIcon',
83            iconCaptionMaxWidth: '99',
84        }),
85        // Города списком без хинта
86        yellowCoords = [[35.73, 57.75], [45.81, 67.75], [55.91, 77.75]];
87    for (var i = 0, l = yellowCoords.length; i < l; i++) {
88        yellowCollection.add(new ymaps.Placemark(yellowCoords[i]));
89    }
90   
91    //map.geoObjects.add(yellowCollection);
92    
93	/*if($("body").hasClass('ru')){*/
94 
95		map.geoObjects
96		
97			// Город+подпись
98			//add(new ymaps.Placemark([75.790139, 50.814052], {iconCaption: 'Ммм' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }));
99			
100			// Города+хинт
101			//.add(new ymaps.Placemark([55.687086, 37.529789], { hintContent: 'Нижний Новгород' }, { preset: 'islands#circleIcon' }))
102			
103			// все города
104			
105			
106			
107			
108			
109			
110			//остальные
111			.add(new ymaps.Placemark([56.13655, 40.39658], { hintContent: 'Владимир' }, { preset: 'islands#circleIcon' }))
112			.add(new ymaps.Placemark([56.13222, 47.25194], { hintContent: 'Чебоксары' }, { preset: 'islands#circleIcon' }))
113			.add(new ymaps.Placemark([51.54056, 46.00861], { hintContent: 'Саратов' }, { preset: 'islands#circleIcon' }))
114			.add(new ymaps.Placemark([42.97638, 47.50236], { hintContent: 'Махачкала' }, { preset: 'islands#circleIcon' }))
115			.add(new ymaps.Placemark([46.34790, 48.03360], { hintContent: 'Астрахань' }, { preset: 'islands#circleIcon' }))
116			.add(new ymaps.Placemark([43.49806, 43.61889], { hintContent: 'Нальчик' }, { preset: 'islands#circleIcon' }))
117			.add(new ymaps.Placemark([54.18380, 45.17490], { hintContent: 'Саранск' }, { preset: 'islands#circleIcon' }))
118			.add(new ymaps.Placemark([52.60311, 39.57076], { hintContent: 'Липецк' }, { preset: 'islands#circleIcon' }))
119			.add(new ymaps.Placemark([56.84976, 53.20448], { hintContent: 'Ижевск' }, { preset: 'islands#circleIcon' }))
120			.add(new ymaps.Placemark([53.20006, 50.15000], { hintContent: 'Самара' }, { preset: 'islands#circleIcon' }))
121			.add(new ymaps.Placemark([56.63877, 47.89078], { hintContent: 'Йошкар-Ола' }, { preset: 'islands#circleIcon' }))
122			.add(new ymaps.Placemark([53.62462, 55.95015], { hintContent: 'Стерлитамак' }, { preset: 'islands#circleIcon' }))
123			.add(new ymaps.Placemark([53.41861, 59.04722], { hintContent: 'Магнитогорск' }, { preset: 'islands#circleIcon' }))
124			.add(new ymaps.Placemark([54.74306, 55.96779], { hintContent: 'Уфа' }, { preset: 'islands#circleIcon' }))
125			.add(new ymaps.Placemark([55.78874, 49.12214], { hintContent: 'Казань' }, { preset: 'islands#circleIcon' }))
126			.add(new ymaps.Placemark([53.20066, 45.00464], { hintContent: 'Пенза' }, { preset: 'islands#circleIcon' }))
127			.add(new ymaps.Placemark([48.71939, 44.50184], { hintContent: 'Волгоград' }, { preset: 'islands#circleIcon' }))
128			.add(new ymaps.Placemark([43.31195, 45.68895], { hintContent: 'Грозный' }, { preset: 'islands#circleIcon' }))
129			.add(new ymaps.Placemark([63.56705, 53.68348], { hintContent: 'Ухта' }, { preset: 'islands#circleIcon' }))
130			.add(new ymaps.Placemark([54.62690, 39.69160], { hintContent: 'Рязань' }, { preset: 'islands#circleIcon' }))
131			.add(new ymaps.Placemark([59.22390, 39.88398], { hintContent: 'Вологда' }, { preset: 'islands#circleIcon' }))
132			.add(new ymaps.Placemark([56.49771, 84.97437], { hintContent: 'Томск' }, { preset: 'islands#circleIcon' }))
133			.add(new ymaps.Placemark([48.48272, 135.08379], { hintContent: 'Хабаровск' }, { preset: 'islands#circleIcon' }))
134			.add(new ymaps.Placemark([61.07006, 42.09830], { hintContent: 'Вельск' }, { preset: 'islands#circleIcon' }))
135			.add(new ymaps.Placemark([51.82721, 107.60627], { hintContent: 'Улан-Удэ' }, { preset: 'islands#circleIcon' }))
136			.add(new ymaps.Placemark([44.72439, 37.76752], { hintContent: 'Новороссийск' }, { preset: 'islands#circleIcon' }))
137			.add(new ymaps.Placemark([61.25745, 46.64963], { hintContent: 'Котлас' }, { preset: 'islands#circleIcon' }))
138			.add(new ymaps.Placemark([58.36909, 45.51558], { hintContent: 'Шарья' }, { preset: 'islands#circleIcon' }))
139			.add(new ymaps.Placemark([55.67798, 37.27773], { hintContent: 'Одинцово' }, { preset: 'islands#circleIcon' }))
140			.add(new ymaps.Placemark([43.59917, 39.72569], { hintContent: 'Сочи' }, { preset: 'islands#circleIcon' }))
141			.add(new ymaps.Placemark([59.93863, 30.31413], { hintContent: 'Санкт-Петербург' }, { preset: 'islands#circleIcon' }))
142			.add(new ymaps.Placemark([54.32824, 48.38657], { hintContent: 'Ульяновск' }, { preset: 'islands#circleIcon' }))
143			.add(new ymaps.Placemark([44.04861, 43.05944], { hintContent: 'Пятигорск' }, { preset: 'islands#circleIcon' }))
144			.add(new ymaps.Placemark([56.85836, 35.90057], { hintContent: 'Тверь' }, { preset: 'islands#circleIcon' }))
145			.add(new ymaps.Placemark([58.01046, 56.25017], { hintContent: 'Пермь' }, { preset: 'islands#circleIcon' }))
146			.add(new ymaps.Placemark([53.25209, 34.37167], { hintContent: 'Брянск' }, { preset: 'islands#circleIcon' }))
147			.add(new ymaps.Placemark([55.38752, 36.73307], { hintContent: 'Наро-Фоминск' }, { preset: 'islands#circleIcon' }))
148			.add(new ymaps.Placemark([58.52131, 31.27104], { hintContent: 'Великий Новгород' }, { preset: 'islands#circleIcon' }))
149			.add(new ymaps.Placemark([53.71556, 91.42917], { hintContent: 'Абакан' }, { preset: 'islands#circleIcon' }))
150			.add(new ymaps.Placemark([54.99244, 73.36859], { hintContent: 'Омск' }, { preset: 'islands#circleIcon' }))
151			.add(new ymaps.Placemark([56.32867, 44.00205], { hintContent: 'Нижний Новгород' }, { preset: 'islands#circleIcon' }))
152			.add(new ymaps.Placemark([56.99719, 40.97139], { hintContent: 'Иваново' }, { preset: 'islands#circleIcon' }))
153			.add(new ymaps.Placemark([56.11095, 47.47755], { hintContent: 'Новочебоксарск' }, { preset: 'islands#circleIcon' }))
154			.add(new ymaps.Placemark([56.01839, 92.86717], { hintContent: 'Красноярск' }, { preset: 'islands#circleIcon' }))
155			.add(new ymaps.Placemark([47.23135, 39.72328], { hintContent: 'Ростов-на-Дону' }, { preset: 'islands#circleIcon' }))
156			.add(new ymaps.Placemark([57.62987, 39.87368], { hintContent: 'Ярославль' }, { preset: 'islands#circleIcon' }))
157			.add(new ymaps.Placemark([57.81360, 28.34960], { hintContent: 'Псков' }, { preset: 'islands#circleIcon' }))
158			.add(new ymaps.Placemark([51.77270, 55.09880], { hintContent: 'Оренбург' }, { preset: 'islands#circleIcon' }))
159			.add(new ymaps.Placemark([62.03389, 129.73306], { hintContent: 'Якутск' }, { preset: 'islands#circleIcon' }))
160			.add(new ymaps.Placemark([53.53030, 49.34610], { hintContent: 'Тольятти' }, { preset: 'islands#circleIcon' }))
161			.add(new ymaps.Placemark([45.04280, 41.97340], { hintContent: 'Ставрополь' }, { preset: 'islands#circleIcon' }))
162			.add(new ymaps.Placemark([57.76647, 40.92686], { hintContent: 'Кострома' }, { preset: 'islands#circleIcon' }))
163			.add(new ymaps.Placemark([54.19609, 37.61822], { hintContent: 'Тула' }, { preset: 'islands#circleIcon' }))
164			.add(new ymaps.Placemark([55.33333, 86.08333], { hintContent: 'Кемерово' }, { preset: 'islands#circleIcon' }))
165			.add(new ymaps.Placemark([51.20487, 58.56685], { hintContent: 'Орск' }, { preset: 'islands#circleIcon' }))
166			.add(new ymaps.Placemark([57.15222, 65.52722], { hintContent: 'Тюмень' }, { preset: 'islands#circleIcon' }))
167			.add(new ymaps.Placemark([64.54010, 40.54330], { hintContent: 'Архангельск' }, { preset: 'islands#circleIcon' }))
168			.add(new ymaps.Placemark([51.67204, 39.18430], { hintContent: 'ВороÐ
168½ÐµÐ¶' }, { preset: 'islands#circleIcon' }))
169			.add(new ymaps.Placemark([61.67642, 50.80994], { hintContent: 'Сыктывкар' }, { preset: 'islands#circleIcon' }))
170			.add(new ymaps.Placemark([54.78180, 32.04010], { hintContent: 'Смоленск' }, { preset: 'islands#circleIcon' }))
171			.add(new ymaps.Placemark([52.73169, 41.44326], { hintContent: 'Тамбов' }, { preset: 'islands#circleIcon' }))
172			.add(new ymaps.Placemark([50.61074, 36.58015], { hintContent: 'Белгород' }, { preset: 'islands#circleIcon' }))
173			.add(new ymaps.Placemark([54.52930, 36.27542], { hintContent: 'Калуга' }, { preset: 'islands#circleIcon' }))
174			.add(new ymaps.Placemark([51.73733, 36.18735], { hintContent: 'Курск' }, { preset: 'islands#circleIcon' }))
175			.add(new ymaps.Placemark([58.59665, 49.66007], { hintContent: 'Киров' }, { preset: 'islands#circleIcon' }))
176			.add(new ymaps.Placemark([55.78187, 38.65025], { hintContent: 'Павловский Посад' }, { preset: 'islands#circleIcon' }))
177			.add(new ymaps.Placemark([53.21970, 26.68080], { hintContent: 'Несвиж' }, { preset: 'islands#circleIcon' }))
178			.add(new ymaps.Placemark([53.98760, 27.79923], { hintContent: 'Королев Стан' }, { preset: 'islands#circleIcon' }))
179			.add(new ymaps.Placemark([44.95719, 34.11079], { hintContent: 'Симферополь' }, { preset: 'islands#circleIcon' }))
180			.add(new ymaps.Placemark([44.58883, 33.52240], { hintContent: 'Севастополь' }, { preset: 'islands#circleIcon' }))
181			.add(new ymaps.Placemark([53.50900, 28.14700], { hintContent: 'Марьина Горка' }, { preset: 'islands#circleIcon' }))
182			.add(new ymaps.Placemark([53.13270, 26.01390], { hintContent: 'Барановичи' }, { preset: 'islands#circleIcon' }))
183			//подпись
184			.add(new ymaps.Placemark([55.75222, 37.61556], { iconCaption: 'Москва' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
185			.add(new ymaps.Placemark([53.90230, 27.56180], { iconCaption: 'Минск' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
186			.add(new ymaps.Placemark([43.23830, 76.94550], { iconCaption: 'Алматы' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
187			.add(new ymaps.Placemark([43.10562, 131.87353], { iconCaption: 'Владивосток' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
188			.add(new ymaps.Placemark([54.70649, 20.51095], { iconCaption: 'Калининград' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
189			.add(new ymaps.Placemark([53.04444, 158.65076], { iconCaption: 'Петропавловск-Камчатский' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
190			.add(new ymaps.Placemark([56.85190, 60.61220], { iconCaption: 'Екатеринбург' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
191			.add(new ymaps.Placemark([55.04150, 82.93460], { iconCaption: 'Новосибирск' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99'  }))
192			.add(new ymaps.Placemark([45.04484, 38.97603], { iconCaption: 'Краснодар' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99'  }))
193			.add(new ymaps.Placemark([52.29778, 104.29639], { iconCaption: 'Иркутск' }, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
194
195			
196			 
197			
198		/*};*/
199
200		/*
201		if($("body").hasClass('en')){
202			map.geoObjects
203			.add(new ymaps.Placemark([56.13655, 40.39658], { hintContent: 'Vladimir'}, { preset: 'islands#circleIcon' }))
204			.add(new ymaps.Placemark([56.13222, 47.25194], { hintContent: 'Cheboksary'}, { preset: 'islands#circleIcon' }))
205			.add(new ymaps.Placemark([51.54056, 46.00861], { hintContent: 'Saratov'}, { preset: 'islands#circleIcon' }))
206			.add(new ymaps.Placemark([42.97638, 47.50236], { hintContent: 'Makhachkala'}, { preset: 'islands#circleIcon' }))
207			.add(new ymaps.Placemark([52.29778, 104.29639], { iconCaption: 'Irkutsk'}, { preset: 'islands#circleIcon', iconCaptionMaxWidth: '99' }))
208		};
209		*/
210    
211    var pane = new ymaps.pane.StaticPane(map, {
212        zIndex: 100, css: {
213            width: '100%', height: '100%', backgroundColor: 'white'
214        }
215    });
216    map.panes.append('greyBackground', pane);
217    //map.behaviors.disable('drag');
218    //map.behaviors.disable('multiTouch');
219    map.behaviors.disable('DblClickZoom');
220    //map.behaviors.disable('default');
221   
222 
223    
224    // Загружаем и добавляем регионы России на карту.
225    ymaps.borders.load('RU', {
226        lang: 'ru'
227    }).then(function (result) {
228        regions = new ymaps.GeoObjectCollection(null, {
229            fillColor: '#f2f8fb',
230            strokeColor: '#dceef7',
231            hasHint: false,
232            cursor: 'default'
233        });
234        for (var i = 0; i < result.features.length; i++) {
235            regions.add(new ymaps.GeoObject(result.features[i]));
236        }
237        map.geoObjects.add(regions);
238    });
239	/*
240	ymaps.borders.load('BY', {
241        lang: 'ru'
242    }).then(function (result) {
243        regions = new ymaps.GeoObjectCollection(null, {
244            fillColor: '#fdeeec',
245            strokeColor: '#ddd',
246            hasHint: false,
247            cursor: 'default'
248        });
249        for (var i = 0; i < result.features.length; i++) {
250            regions.add(new ymaps.GeoObject(result.features[i]));
251        }
252        map.geoObjects.add(regions);
253    });
254	
255	ymaps.borders.load('KZ', {
256        lang: 'ru'
257    }).then(function (result) {
258        regions = new ymaps.GeoObjectCollection(null, {
259            fillColor: '#eefbff',
260            strokeColor: '#ddd',
261            hasHint: false,
262            cursor: 'default'
263        });
264        for (var i = 0; i < result.features.length; i++) {
265            regions.add(new ymaps.GeoObject(result.features[i]));
266        }
267        map.geoObjects.add(regions);
268    });*/
269	
270	});
271	ymaps.modules.define('projection.LambertConformalConic', [
272		'util.defineClass',
273		'util.math.cycleRestrict',
274		'coordSystem.geo',
275		'meta'
276	], function (provide, defineClass, cycleRestrict, CoordSystemGeo, meta) {
277    /**
278     * @fileOverview
279     * Равноугольная коническая проекция Ламберта.
280     */
281    var latLongOrder = meta.coordinatesOrder != 'longlat';
282    /**
283     * Создает равноугольную коническую проекцию Ламберта.
284     *
285     * @name projection.LambertConformalConic
286     * @class Равноугольная коническая проекция Ламберта.
287     * Учитывает параметр coordorder, заданный при подключении API.
288     * @augments IProjection
289     */
290    function LambertConformalConic() {
291        if (ymaps.meta.debug) {
292            if (!center[0] || !center[1]) {
293                throw new Error("projection.LambertConformalConic: Некорректные значения параметра center.");
294            }
295        }
296        this._degToRad = function (point) {
297            return point * Math.PI / 180;
298        };
299        // Широта и долгота точки, которая служит началом координат в декартовой системе проекции.
300        this._fi0 = this._degToRad(0);
301        this._l0 = this._degToRad(-2);
302        // Стандартные параллели.
303        this._fi1 = this._degToRad(70);
304        this._fi2 = this._degToRad(40);
305    }
306    defineClass(LambertConformalConic, {
307        toGlobalPixels: function (point, zoom) {
308            if (ymaps.meta.debug) {
309                if (!point) {
310                    throw new Error("LambertConformalConic.toGlobalPixels: не передан параметр point");
311                }
312                if (typeof zoom == "undefined") {
313                    throw new Error("LambertConformalConic.toGlobalPixels: не передан параметр zoom");
314                }
315            }
316            // Широта и долгота точки на поверхности Земли.
317            var fi = this._degToRad(point[latLongOrder ? 0 : 1]);
318            var l = this._degToRad(point[latLongOrder ? 1 : 0]);
319            var n = (Math.log(Math.cos(this._fi1) / Math.cos(this._fi2))) / (Math.log(Math.tan(0.25 * Math.PI + 0.5 * this._fi2) / Math.tan(0.25 * Math.PI + 0.5 * this._fi1)));
320            var F = (Math.cos(this._fi1) * Math.pow(Math.tan(0.25 * Math.PI + 0.5 * this._fi1), n)) / (n);
321            var p = F * Math.pow(1 / Math.tan(0.25 * Math.PI + 0.5 * fi), n);
322            var p0 = F * Math.pow(1 / Math.tan(0.25 * Math.PI + 0.5 * this._fi0), n);
323            // Декартовы координаты той же точки на проекции.
324            var x = p0 - p * Math.cos(n * (l - this._l0));
325            var y = p * Math.sin(n * (l - this._l0));
326            x = x * 128 * Math.pow(2, zoom);
327            y = y * 128 * Math.pow(2, zoom);
328            return [x, y];
329        },
330        // Если вам нужно переводить глобаÐ
330»ÑŒÐ½Ñ‹Ðµ пиксельные координаты в широту и долготу, необходимо реализовать
331        // метод fromGlobalPixels. Это может понадобиться, например, если вы захотите воспользоваться линейкой.
332        fromGlobalPixels: function (point, zoom) {
333            if (ymaps.meta.debug) {
334                console.log('projection.LambertConformalConic#fromGlobalPixels не имплементировано');
335            }
336            return [0, 0];
337        },
338        isCycled: function () {
339            return [false, false];
340        },
341        getCoordSystem: function () {
342            return CoordSystemGeo;
343        }
344    });
345    provide(LambertConformalConic);
346});
347
348	
349 
350});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.