PageSourceSearch

https://securityrussia.com/bitrix/templates/aspro_max/components/b…/map/script.js?17267679702694

js securityrussia.com collected 2026-10-02 17:46:47 UTC 2,694 bytes, 90 lines download raw bytes

1window.BX_YMapAddPlacemark = function(map, arPlacemark, isClustered){
2	if (null == map)
3		return false;
4
5	if(!arPlacemark.LAT || !arPlacemark.LON)
6		return false;
7
8	var markerSVG = ymaps.templateLayoutFactory.createClass([
9'<svg width="46" height="57" viewBox="0 0 46 57">',
10'<defs><style>.cls-marker, .cls-marker3 {fill: #fff;}.cls-marker, .cls-marker2 {fill-rule: evenodd;}.cls-marker {opacity: 0.5;}.cls-marker2 {fill: #247ee3;}</style></defs>',
11'<path data-name="Ellipse 275 copy" class="cls-marker" d="M142.976,200.433L143,200.469s-7.05,5.826-10,10.375c-2.263,3.489-2.974,6.153-5,6.156s-2.737-2.667-5-6.156c-2.95-4.549-10-10.375-10-10.375l0.024-.036A23,23,0,1,1,142.976,200.433Z" transform="translate(-105 -160)"/>',
12'<path data-name="Ellipse 253 copy 4" class="cls-marker2" d="M140,198.971L140,199s-6.362,5.91-8.092,8.456C128.351,212.69,128,215,128,215s-0.307-2.084-3.826-7.448C121.8,203.935,116,199,116,199l0-.029A20,20,0,1,1,140,198.971Z" transform="translate(-105 -160)"/>',
13'<circle data-name="Ellipse 254 copy 5" class="cls-marker3" cx="23" cy="23" r="12"/>',
14'</svg>'
15].join(''));
16	
17	var props = {};
18	if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0)
19	{
20		var value_view = '';
21
22		if (arPlacemark.TEXT.length > 0)
23		{
24			var rnpos = arPlacemark.TEXT.indexOf("\n");
25			value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos);
26		}
27
28		// hz
29		props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />');
30
31		props.balloonContent = arPlacemark.TEXT;
32
33
34		props.hintContent = value_view;
35	}
36	var option = {
37		iconImageSize: [46, 57],
38		// iconImageOffset: [-24, -30],
39		iconImageOffset: [-23, -28],
40		item: arPlacemark.ITEM_ID,
41		iconLayout: markerSVG
42	};
43
44	var obPlacemark = new ymaps.Placemark(
45		[parseFloat(arPlacemark.LAT), parseFloat(arPlacemark.LON)],
46		props,
47		option,
48		{balloonCloseButton: true}
49	);
50
51	if(!isClustered) { map.geoObjects.add(obPlacemark); }
52
53	return obPlacemark;
54}
55
56if (!window.BX_YMapAddPolyline)
57{
58	window.BX_YMapAddPolyline = function(map, arPolyline)
59	{
60		if (null == map)
61			return false;
62
63		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
64		{
65			var arPoints = [];
66			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
67			{
68				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
69			}
70		}
71		else
72		{
73			return false;
74		}
75
76		var obParams = {clickable: true};
77		if (null != arPolyline.STYLE)
78		{
79			obParams.strokeColor = arPolyline.STYLE.strokeColor;
80			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
81		}
82		var obPolyline = new ymaps.Polyline(
83			arPoints, {balloonContent: arPolyline.TITLE}, obParams
84		);
85
86		map.geoObjects.add(obPolyline);
87
88		return obPolyline;
89	}
90}

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.