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 props = {}; 9 10 11 if (null != arPlacemark.TEXT && arPlacemark.TEXT.length > 0) 12 { 13 var value_view = ''; 14 15 if (arPlacemark.TEXT.length > 0) 16 { 17 var rnpos = arPlacemark.TEXT.indexOf("\n"); 18 value_view = rnpos <= 0 ? arPlacemark.TEXT : arPlacemark.TEXT.substring(0, rnpos); 19 } 20 21 props.balloonContent = arPlacemark.TEXT.replace(/\n/g, '<br />'); 22 props.hintContent = value_view; 23 } 24 25 if (null != arPlacemark.HTML && arPlacemark.HTML.length > 0) 26 { 27 props.balloonContent = arPlacemark.HTML; 28 } 29 30 var option = { 31 item: arPlacemark.ITEM_ID, 32 // hideIconOnBalloonOpen: false, 33 hasHint: false, 34 // hasBalloon: false, 35 }; 36 37 if(arLiteOptions['THEME']['DEFAULT_MAP_MARKET'] != 'Y') 38 { 39 var markerSVG = ymaps.templateLayoutFactory.createClass([ 40 '<svg width="51" height="51" viewBox="0 0 102 102" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 0H102L87.0517 30.2618L102 60.5236H21.7812L0 102L0 52.5131L0 0Z" fill="#5600b7"/></svg>' 41 ].join('')); 42 option.iconLayout = markerSVG; 43 } 44 45 var obPlacemark = new ymaps.Placemark( 46 [arPlacemark.LAT, arPlacemark.LON], 47 props, 48 option, 49 {balloonCloseButton: true} 50 ); 51 52 if(!isClustered) { map.geoObjects.add(obPlacemark); } 53 54 return obPlacemark; 55} 56 57if (!window.BX_YMapAddPolyline) 58{ 59 window.BX_YMapAddPolyline = function(map, arPolyline) 60 { 61 if (null == map) 62 return false; 63 64 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 65 { 66 var arPoints = []; 67 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 68 { 69 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 70 } 71 } 72 else 73 { 74 return false; 75 } 76 77 var obParams = {clickable: true}; 78 if (null != arPolyline.STYLE) 79 { 80 obParams.strokeColor = arPolyline.STYLE.strokeColor; 81 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 82 } 83 var obPolyline = new ymaps.Polyline( 84 arPoints, {balloonContent: arPolyline.TITLE}, obParams 85 ); 86 87 map.geoObjects.add(obPolyline); 88 89 return obPolyline; 90 } 91}
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.