PageSourceSearch

https://penza-sputnik.ru/bitrix/components/bitrix/map.yandex.view/templates/.default/script.js?17325585511540

js penza-sputnik.ru collected 2026-09-24 09:51:41 UTC 1,540 bytes, 72 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		var obPlacemark = new ymaps.Placemark(
27			[arPlacemark.LAT, arPlacemark.LON],
28			props,
29			{balloonCloseButton: true}
30		);
31
32		map.geoObjects.add(obPlacemark);
33
34		return obPlacemark;
35	}
36}
37
38if (!window.BX_YMapAddPolyline)
39{
40	window.BX_YMapAddPolyline = function(map, arPolyline)
41	{
42		if (null == map)
43			return false;
44
45		if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1)
46		{
47			var arPoints = [];
48			for (var i = 0, len = arPolyline.POINTS.length; i < len; i++)
49			{
50				arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]);
51			}
52		}
53		else
54		{
55			return false;
56		}
57
58		var obParams = {clickable: true};
59		if (null != arPolyline.STYLE)
60		{
61			obParams.strokeColor = arPolyline.STYLE.strokeColor;
62			obParams.strokeWidth = arPolyline.STYLE.strokeWidth;
63		}
64		var obPolyline = new ymaps.Polyline(
65			arPoints, {balloonContent: arPolyline.TITLE}, obParams
66		);
67
68		map.geoObjects.add(obPolyline);
69
70		return obPolyline;
71	}
72}

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.