1window.BX_YMapAddPlacemark = function(map, arPlacemark, isClustered){ 2 if (null == map) 3 return false; 4 5 if(!arPlacemark.LAT || !arPlacemark.LON) 6 return false; 7 8 var markerSVG = ymaps.templateLayoutFactory.createClass([ 9'<svg width="46" height="57" viewBox="0 0 46 57">', 10'<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>', 11'<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)"/>', 12'<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)"/>', 13'<circle data-name="Ellipse 254 copy 5" class="cls-marker3" cx="23" cy="23" r="12"/>', 14'</svg>' 15].join('')); 16 17 var props = {}; 18 if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0) 19 { 20 var value_view = ''; 21 22 if (arPlacemark.TEXT.length > 0) 23 { 24 var rnpos = arPlacemark.TEXT.indexOf("\n"); 25 value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos); 26 } 27 28 props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />'); 29 props.hintContent = value_view; 30 } 31 var option = { 32 iconImageSize: [46, 57], 33 // iconImageOffset: [-24, -30], 34 iconImageOffset: [-23, -28], 35 item: arPlacemark.ITEM_ID, 36 iconLayout: markerSVG 37 }; 38 39 var obPlacemark = new ymaps.Placemark( 40 [arPlacemark.LAT, arPlacemark.LON], 41 props, 42 option, 43 {balloonCloseButton: true} 44 ); 45 46 if(!isClustered) { map.geoObjects.add(obPlacemark); } 47 48 return obPlacemark; 49} 50 51if (!window.BX_YMapAddPolyline) 52{ 53 window.BX_YMapAddPolyline = function(map, arPolyline) 54 { 55 if (null == map) 56 return false; 57 58 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 59 { 60 var arPoints = []; 61 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 62 { 63 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 64 } 65 } 66 else 67 { 68 return false; 69 } 70 71 var obParams = {clickable: true}; 72 if (null != arPolyline.STYLE) 73 { 74 obParams.strokeColor = arPolyline.STYLE.strokeColor; 75 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 76 } 77 var obPolyline = new ymaps.Polyline( 78 arPoints, {balloonContent: arPolyline.TITLE}, obParams 79 ); 80 81 map.geoObjects.add(obPolyline); 82 83 return obPolyline; 84 } 85}
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.