Output.js
Home
/
web-map /
Scripts /
SiteScripts /
Output.js
function PrintInfoAboutSettlement(info) {
var header = "<h3>" + info.Name + "</h3>"
document.getElementById('sidebar-header').innerHTML = header;
var text = '';
text += '<p>' + 'Тип: ' + info.Type + '</p><br/>';
text += '<p>' + 'Время основания: ' + info.Year + '</p><br/>';
text += '<p>' + 'Входит в состав: ' + info.Region + '</p><br/>';
text += '<p>' + 'Количество населения: ' + info.Population + '</p>';
text += '<p>' + 'Мужское население: ' + info.PopulationOfMan + '</p>';
text += '<p>' + 'Женское население: ' + info.PopulationOfWoman + '</p><br/>';
text += '<p>' + 'Описание: ' + info.Description + '</p><br/>';
text += '<p>' + 'Ссылка: ' + '<a href="' + info.Source + '">' + '[0]' + '</a>' + '</p><br/>';
document.getElementById('sidebar-text').innerHTML = text;
}
function PlaceFromCollection() {
Map.geoObjects.add(CollectionVisible);
}