PageSourceSearch

https://aomeduslugi.ru/local/templates/zs_2022/components/bitrix/m…/default/script.js?17647511513029

js aomeduslugi.ru collected 2026-09-24 09:39:00 UTC 3,029 bytes, 97 lines download raw bytes

1if (!window.BX_YMapAddPlacemark_custom)
2{
3	window.BX_YMapAddPlacemark_custom = function(map, arPlacemark)
4	{
5		if (null == map)
6			return false;
7
8		if(!arPlacemark.LAT || !arPlacemark.LON)
9			return false;
10
11		var props = {},
12			props_ico = {};;
13		if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0)
14		{
15			var value_view = '';
16
17			if (arPlacemark.TEXT.length > 0)
18			{
19				var rnpos = arPlacemark.NAME.indexOf("\n");
20				value_view = rnpos <= 0 ? arPlacemark.NAME : arPlacemark.NAME.substring(0, rnpos);
21			}
22
23			props.balloonContent = arPlacemark.TEXT;
24			props.hintContent = value_view;
25			//props.hasBalloon = false;
26			//props.visible = arPlacemark.VISIBILE;
27		}
28		props.ID_POINT = arPlacemark.ID_POINT;
29		var obPlacemark = new ymaps.Placemark(
30			[arPlacemark.LAT, arPlacemark.LON],
31			props,
32			{
33				balloonCloseButton: true,
34				//hasBalloon : false,//не открывать popup при клике на маркер
35				visible : arPlacemark.VISIBILE,//отображать или нет
36            // Опции.
37            // Необходимо указать данный тип макета.
38            iconLayout: 'default#image',
39            // Своё изображение иконки метки.
40            //iconImageHref: '/local/templates/mobile_new/components/bitrix/map.yandex.view/default/images/marker.png?v=1',
41            // Размеры метки.
42            iconImageSize: [50, 50],
43            // Смещение левого верхнего угла иконки относительно
44            // её "ножки" (точки привязки).
45            iconImageOffset: [-20, -50],
46			id_point: arPlacemark.ID_POINT
47			}
48		);
49		/*obPlacemark.events.add('click', function (e) {//клик по маркеру
50			var scroll_el = $(".office-id-"+e.get('target').properties.get("ID_POINT"));//получаем id офиса для прокрутки из маркера
51			//console.log(".office-id-"+e.get('target').properties.get("ID_POINT"));
52        	if (scroll_el.length != 0) {
53				$('html, body').animate({ scrollTop: scroll_el.offset().top }, 500);
54			}
55			return false;
56			//console.log(e.get('target').properties.get("ID_POINT"))
57		});*/
58		map.geoObjects.add(obPlacemark);
59		return obPlacemark;
60	}
61}
62
63if (!window.BX_YMapAddPolyline)
64{
65	window.BX_YMapAddPolyline = function(map, arPolyline)
66	{
67		if (null == map)
68			return false;
69
70		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
71		{
72			var arPoints = [];
73			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
74			{
75				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
76			}
77		}
78		else
79		{
80			return false;
81		}
82
83		var obParams = {clickable: true};
84		if (null != arPolyline.STYLE)
85		{
86			obParams.strokeColor = arPolyline.STYLE.strokeColor;
87			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
88		}
89		var obPolyline = new ymaps.Polyline(
90			arPoints, {balloonContent: arPolyline.TITLE}, obParams
91		);
92
93		map.geoObjects.add(obPolyline);
94
95		return obPolyline;
96	}
97}

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.