PageSourceSearch

https://zolotoproekt.ru/bitrix/templates/innet_focus_s1/components…/Projects_map/script.js?16408468042080

js zolotoproekt.ru collected 2026-10-06 00:12:18 UTC 2,080 bytes, 83 lines download raw bytes

1if (!window.BX_YMapAddPlacemark)
2{
3	window.BX_YMapAddPlacemark = 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		if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0)
13		{
14			var value_view = '';
15
16			if (arPlacemark.TEXT.length > 0)
17			{
18				var rnpos = arPlacemark.TEXT.indexOf("\n");
19				value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos);
20			}
21
22			props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />');
23			props.hintContent = value_view;
24		}
25
26		props.url=arPlacemark.URL;
27		var obPlacemark = new ymaps.Placemark(
28			[arPlacemark.LAT, arPlacemark.LON],
29			props,
30			{balloonCloseButton: true,
31			// Пользовательная иконка на карту
32			iconImageHref: '/bitrix/templates/innet_focus_s1/components/bitrix/map.yandex.view/Projects_map/images/baloon_custom3.png',
33			iconImageSize: [48, 48],
34			iconImageOffset: [-24, -48]}
35			// iconImageSize: [64, 64],
36			// iconImageOffset: [-32, -64]}
37		);
38		// ПО клику на baloon переходил на страницу детально(сразу)
39		// obPlacemark.events.add('click', function (e) {
40		// 	location = props.url;
41		// });
42
43		map.geoObjects.add(obPlacemark);
44
45		return obPlacemark;
46	}
47}
48
49if (!window.BX_YMapAddPolyline)
50{
51	window.BX_YMapAddPolyline = function(map, arPolyline)
52	{
53		if (null == map)
54			return false;
55
56		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
57		{
58			var arPoints = [];
59			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
60			{
61				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
62			}
63		}
64		else
65		{
66			return false;
67		}
68
69		var obParams = {clickable: true};
70		if (null != arPolyline.STYLE)
71		{
72			obParams.strokeColor = arPolyline.STYLE.strokeColor;
73			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
74		}
75		var obPolyline = new ymaps.Polyline(
76			arPoints, {balloonContent: arPolyline.TITLE}, obParams
77		);
78
79		map.geoObjects.add(obPolyline);
80
81		return obPolyline;
82	}
83}

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.