1 2; /* Start:"a:4:{s:4:"full";s:90:"/bitrix/templates/aspro_max/components/bitrix/map.yandex.view/map/script.js?17507629802694";s:6:"source";s:75:"/bitrix/templates/aspro_max/components/bitrix/map.yandex.view/map/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3window.BX_YMapAddPlacemark = function(map, arPlacemark, isClustered){ 4 if (null == map) 5 return false; 6 7 if(!arPlacemark.LAT || !arPlacemark.LON) 8 return false; 9 10 var markerSVG = ymaps.templateLayoutFactory.createClass([ 11'<svg width="46" height="57" viewBox="0 0 46 57">', 12'<defs><style>.cls-marker, .cls-marker3 {fill: #fff;}.cls-marker, .cls-marker2 {fill-rule: evenodd;}.cls-marker {opacity: 0.5;}.cls-marker2 {fill: #247ee3;}</style></defs>', 13'<path data-name="Ellipse 275 copy" class="cls-marker" d="M142.976,200.433L143,200.469s-7.05,5.826-10,10.375c-2.263,3.489-2.974,6.153-5,6.156s-2.737-2.667-5-6.156c-2.95-4.549-10-10.375-10-10.375l0.024-.036A23,23,0,1,1,142.976,200.433Z" transform="translate(-105 -160)"/>', 14'<path data-name="Ellipse 253 copy 4" class="cls-marker2" d="M140,198.971L140,199s-6.362,5.91-8.092,8.456C128.351,212.69,128,215,128,215s-0.307-2.084-3.826-7.448C121.8,203.935,116,199,116,199l0-.029A20,20,0,1,1,140,198.971Z" transform="translate(-105 -160)"/>', 15'<circle data-name="Ellipse 254 copy 5" class="cls-marker3" cx="23" cy="23" r="12"/>', 16'</svg>' 17].join('')); 18 19 var props = {}; 20 if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0) 21 { 22 var value_view = ''; 23 24 if (arPlacemark.TEXT.length > 0) 25 { 26 var rnpos = arPlacemark.TEXT.indexOf("\n"); 27 value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos); 28 } 29 30 // hz 31 props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />'); 32 33 props.balloonContent = arPlacemark.TEXT; 34 35 36 props.hintContent = value_view; 37 } 38 var option = { 39 iconImageSize: [46, 57], 40 // iconImageOffset: [-24, -30], 41 iconImageOffset: [-23, -28], 42 item: arPlacemark.ITEM_ID, 43 iconLayout: markerSVG 44 }; 45 46 var obPlacemark = new ymaps.Placemark( 47 [parseFloat(arPlacemark.LAT), parseFloat(arPlacemark.LON)], 48 props, 49 option, 50 {balloonCloseButton: true} 51 ); 52 53 if(!isClustered) { map.geoObjects.add(obPlacemark); } 54 55 return obPlacemark; 56} 57 58if (!window.BX_YMapAddPolyline) 59{ 60 window.BX_YMapAddPolyline = function(map, arPolyline) 61 { 62 if (null == map) 63 return false; 64 65 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 66 { 67 var arPoints = []; 68 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 69 { 70 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 71 } 72 } 73 else 74 { 75 return false; 76 } 77 78 var obParams = {clickable: true}; 79 if (null != arPolyline.STYLE) 80 { 81 obParams.strokeColor = arPolyline.STYLE.strokeColor; 82 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 83 } 84 var obPolyline = new ymaps.Polyline( 85 arPoints, {balloonContent: arPolyline.TITLE}, obParams 86 ); 87 88 map.geoObjects.add(obPolyline); 89 90 return obPolyline; 91 } 92} 93/* End */ 94;; /* /bitrix/templates/aspro_max/components/bitrix/map.yandex.view/map/script.js?17507629802694*/
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.