return <div className="breadcrumbs"><ul>{
breadcrumbs.map(({ title, href, as }, index, arr) => (index === arr.length -1)
? <li key={index}><span>{ title }</span></li>
: <li key={index}>
<Link href={href} as={as}>
<a>{ title }</a>
</Link>
</li>
)
}</ul></div>
// this.process = exec(this.start_comand, () => {});
this.process = execFile('sh', ['./testApp/headless.sh', '- port 35000'], () => {});
// this.process = spawn('sh', ['./testApp/headless.sh', '- port 35000']);
console.log(this.process.pid);
ymaps.ready(init);
function init() {
var myMap = new ymaps.Map('map', {
center: [55.753994, 37.622093],
zoom: 9
});
ymaps.geocode('владивосток', {
results: 1
}).then((res) => {
let firstGeoObject = res.geoObjects.get(0);
let coords = firstGeoObject.geometry.getCoordinates();
console.log(coords);
ymaps.borders.load('RU').then((geojson) => {
console.log(geojson);
}, (e) => {
console.log(e);
});
});
}
let one = tile.getBounds()._northEast;
let two = tile.getBounds()._southWest;
getWidthAndHeight(southWest, southEast, northEast) { // получаем длины вертикальной и горизонтальной линии
this.points = [
new L.LatLng(southWest[0], southWest[1]),
new L.LatLng(southEast[0], southEast[1]),
new L.LatLng(northEast[0], northEast[1])
];
this.data.width = +(this.points[0].distanceTo(this.points[1])).toFixed(0);
this.data.height = +(this.points[1].distanceTo(this.points[2])).toFixed(0);
}