https://dignus-company.ru/bitrix/templates/dignus/components/bitrix/map.yandex.view/dignus/script.js
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,iconImageHref:"/bitrix/templates/dignus/img/ico-map-2.png", iconImageSize: [27, 41],} 30 ); 31 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ 32 map.behaviors.disable('scrollZoom'); 33 map.behaviors.disable('drag'); 34 } 35 map.geoObjects.add(obPlacemark); 36 37 return obPlacemark; 38 } 39} 40 41if (!window.BX_YMapAddPolyline) 42{ 43 window.BX_YMapAddPolyline = function(map, arPolyline) 44 { 45 if (null == map) 46 return false; 47 48 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 49 { 50 var arPoints = []; 51 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 52 { 53 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 54 } 55 } 56 else 57 { 58 return false; 59 } 60 61 var obParams = {clickable: true}; 62 if (null != arPolyline.STYLE) 63 { 64 obParams.strokeColor = arPolyline.STYLE.strokeColor; 65 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 66 } 67 var obPolyline = new ymaps.Polyline( 68 arPoints, {balloonContent: arPolyline.TITLE}, obParams 69 ); 70 71 map.geoObjects.add(obPolyline); 72 73 return obPolyline; 74 } 75}
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.