https://aomeduslugi.ru/local/templates/zs_2022/components/bitrix/m…/default/script.js?17647511513029
1if (!window.BX_YMapAddPlacemark_custom) 2{ 3 window.BX_YMapAddPlacemark_custom = 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 props_ico = {};; 13 if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0) 14 { 15 var value_view = ''; 16 17 if (arPlacemark.TEXT.length > 0) 18 { 19 var rnpos = arPlacemark.NAME.indexOf("\n"); 20 value_view = rnpos <= 0 ? arPlacemark.NAME : arPlacemark.NAME.substring(0, rnpos); 21 } 22 23 props.balloonContent = arPlacemark.TEXT; 24 props.hintContent = value_view; 25 //props.hasBalloon = false; 26 //props.visible = arPlacemark.VISIBILE; 27 } 28 props.ID_POINT = arPlacemark.ID_POINT; 29 var obPlacemark = new ymaps.Placemark( 30 [arPlacemark.LAT, arPlacemark.LON], 31 props, 32 { 33 balloonCloseButton: true, 34 //hasBalloon : false,//не оÑкÑÑваÑÑ popup пÑи клике на маÑÐºÐµÑ 35 visible : arPlacemark.VISIBILE,//оÑобÑажаÑÑ Ð¸Ð»Ð¸ Ð½ÐµÑ 36 // ÐпÑии. 37 // ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑказаÑÑ Ð´Ð°Ð½Ð½Ñй Ñип макеÑа. 38 iconLayout: 'default#image', 39 // Ð¡Ð²Ð¾Ñ Ð¸Ð·Ð¾Ð±Ñажение иконки меÑки. 40 //iconImageHref: '/local/templates/mobile_new/components/bitrix/map.yandex.view/default/images/marker.png?v=1', 41 // РазмеÑÑ Ð¼ÐµÑки. 42 iconImageSize: [50, 50], 43 // СмеÑение левого веÑÑ Ð½ÐµÐ³Ð¾ Ñгла иконки оÑноÑиÑелÑно 44 // ÐµÑ "ножки" (ÑоÑки пÑивÑзки). 45 iconImageOffset: [-20, -50], 46 id_point: arPlacemark.ID_POINT 47 } 48 ); 49 /*obPlacemark.events.add('click', function (e) {//клик по маÑкеÑÑ 50 var scroll_el = $(".office-id-"+e.get('target').properties.get("ID_POINT"));//полÑÑаем id оÑиÑа Ð´Ð»Ñ Ð¿ÑокÑÑÑки из маÑкеÑа 51 //console.log(".office-id-"+e.get('target').properties.get("ID_POINT")); 52 if (scroll_el.length != 0) { 53 $('html, body').animate({ scrollTop: scroll_el.offset().top }, 500); 54 } 55 return false; 56 //console.log(e.get('target').properties.get("ID_POINT")) 57 });*/ 58 map.geoObjects.add(obPlacemark); 59 return obPlacemark; 60 } 61} 62 63if (!window.BX_YMapAddPolyline) 64{ 65 window.BX_YMapAddPolyline = function(map, arPolyline) 66 { 67 if (null == map) 68 return false; 69 70 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 71 { 72 var arPoints = []; 73 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 74 { 75 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 76 } 77 } 78 else 79 { 80 return false; 81 } 82 83 var obParams = {clickable: true}; 84 if (null != arPolyline.STYLE) 85 { 86 obParams.strokeColor = arPolyline.STYLE.strokeColor; 87 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 88 } 89 var obPolyline = new ymaps.Polyline( 90 arPoints, {balloonContent: arPolyline.TITLE}, obParams 91 ); 92 93 map.geoObjects.add(obPolyline); 94 95 return obPolyline; 96 } 97}
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.