PageSourceSearch

https://vashpatent.ru/bitrix/cache/js/s1/aspro-allcorp2/page_28772…d3f4062e4f285f61e032b4_v1.js?17641685483235

js vashpatent.ru collected 2026-10-04 21:52:08 UTC 3,235 bytes, 104 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:95:"/bitrix/templates/aspro-allcorp2/components/bitrix/map.yandex.view/map/script.js?16623755302848";s:6:"source";s:80:"/bitrix/templates/aspro-allcorp2/components/bitrix/map.yandex.view/map/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3
4window.BX_YMapAddPlacemark = function(map, arPlacemark, isClustered){
5	if (null == map)
6		return false;
7
8	if(!arPlacemark.LAT || !arPlacemark.LON)
9		return false;
10
11	var props = {};
12
13	
14	if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0)
15	{
16		var value_view = '';
17
18		if (arPlacemark.TEXT.length > 0)
19		{
20			var rnpos = arPlacemark.TEXT.indexOf("\n");
21			value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos);
22		}
23
24		props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />');
25		props.hintContent = value_view;
26	}
27
28	if (null != arPlacemark.HTML && arPlacemark.HTML.length > 0)
29	{
30		props.balloonContent = arPlacemark.HTML;
31	}
32
33	var option = {
34		item: arPlacemark.ITEM_ID,
35		// hideIconOnBalloonOpen: false,
36		hasHint: false,
37		// hasBalloon: false,
38	};
39	
40	if(typeof ymaps !== 'undefined' && arAllcorp2Options['THEME']['DEFAULT_MAP_MARKET'] != 'Y')
41	{
42		var markerSVG = ymaps.templateLayoutFactory.createClass([
43		'<svg xmlns="http://www.w3.org/2000/svg" width="44" height="55" class="marker dynamic" viewBox="0 0 44 55">',
44		'<defs><style>.mcls-1,.mcls-3{fill:#fff;}.mcls-1,.mcls-2{fill-rule:evenodd;}.mcls-2{opacity: 0.75;fill:#fff;}.mcls-1{fill: #ff6307;}</style></defs>',
45		'<path class="mcls-2" d="M44,23.051c0,15.949-22,31.938-22,31.938S0.009,39,.009,23.051c0-.147.019-0.29,0.022-0.436C0.025,22.409,0,22.208,0,22A22,22,0,0,1,19.627.132,19.174,19.174,0,0,1,24.5.152,22,22,0,0,1,44,22c0,0.172-.022.338-0.026,0.509S44,22.869,44,23.051Z"></path>',
46		'<path class="mcls-1" d="M42,23.393c0,13.424-20,29.6-20,29.6s-20-16.174-20-29.6c0-.209.024-0.414,0.03-0.623C2.029,22.513,2,22.26,2,22a20,20,0,0,1,40,0c0,0.227-.026.448-0.034,0.673C41.974,22.914,42,23.151,42,23.393Z"></path>',
47		'<circle class="mcls-3" cx="22" cy="22" r="11"></circle>',
48		'</svg>'
49		].join(''));
50
51		option.iconImageSize = [46, 57];
52		option.iconLayout = markerSVG;
53
54	}
55	
56	var obPlacemark = new ymaps.Placemark(
57		[arPlacemark.LAT, arPlacemark.LON],
58		props,
59		option,
60		{balloonCloseButton: true}
61	);
62
63	if(!isClustered) { map.geoObjects.add(obPlacemark); }
64
65	return obPlacemark;
66}
67
68if (!window.BX_YMapAddPolyline)
69{
70	window.BX_YMapAddPolyline = function(map, arPolyline)
71	{
72		if (null == map)
73			return false;
74
75		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
76		{
77			var arPoints = [];
78			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
79			{
80				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
81			}
82		}
83		else
84		{
85			return false;
86		}
87
88		var obParams = {clickable: true};
89		if (null != arPolyline.STYLE)
90		{
91			obParams.strokeColor = arPolyline.STYLE.strokeColor;
92			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
93		}
94		var obPolyline = new ymaps.Polyline(
95			arPoints, {balloonContent: arPolyline.TITLE}, obParams
96		);
97
98		map.geoObjects.add(obPolyline);
99
100		return obPolyline;
101	}
102}
103/* End */
104;; /* /bitrix/templates/aspro-allcorp2/components/bitrix/map.yandex.view/map/script.js?16623755302848*/

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.