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 { 30 balloonCloseButton: true, 31 iconLayout: 'default#image', 32 iconImageHref: '/local/templates/aspro_next/images/map-pin.png', 33 iconImageSize: [64, 64], 34 iconImageOffset: [-32, -64] 35 } 36 ); 37 38 map.geoObjects.add(obPlacemark); 39 40 return obPlacemark; 41 } 42} 43 44if (!window.BX_YMapAddPolyline) 45{ 46 window.BX_YMapAddPolyline = function(map, arPolyline) 47 { 48 if (null == map) 49 return false; 50 51 if (null != arPolyline.POINTS && arPolyline.POINTS.length > 1) 52 { 53 var arPoints = []; 54 for (var i = 0, len = arPolyline.POINTS.length; i < len; i++) 55 { 56 arPoints.push([arPolyline.POINTS[i].LAT, arPolyline.POINTS[i].LON]); 57 } 58 } 59 else 60 { 61 return false; 62 } 63 64 var obParams = {clickable: true}; 65 if (null != arPolyline.STYLE) 66 { 67 obParams.strokeColor = arPolyline.STYLE.strokeColor; 68 obParams.strokeWidth = arPolyline.STYLE.strokeWidth; 69 } 70 var obPolyline = new ymaps.Polyline( 71 arPoints, {balloonContent: arPolyline.TITLE}, obParams 72 ); 73 74 map.geoObjects.add(obPolyline); 75 76 return obPolyline; 77 } 78}
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.