?PNG
IHDR ? f ??C1 sRGB ?? gAMA ?a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
ymaps.ready(init);
var myMap;
var coords;
function init(){
var conn = new cms_connector('user');
conn.execute({'getAddress' : {}}, function() {
ymaps.geocode('Беларусь, ' + this.result.Address, {
results: 1
}).then(function (res) {
coords = res.geoObjects.get(0).geometry.getCoordinates();
myMap = new ymaps.Map ("map", {
center: coords,
zoom: 16,
});
})
});
}
function getMap()
{
myMap.container.fitToViewport();
myMap.controls.add('smallZoomControl', { left: 5, top: 5 });
if(!ymaps.geoQuery(myMap.geoObjects).getLength())
{
var myPlacemark;
myPlacemark = new ymaps.Placemark(coords, {
iconContent: '',
balloonContent: ''
},
{
/*iconImageHref: '/i/logomap.png',
iconImageSize: [100, 25], // размеры картинки
iconImageOffset: [-43, -35] // смещение картинки*/
/*preset: 'twirl#redStretchyIcon'*/
});
myMap.geoObjects.add(myPlacemark);
}
}
function hideMap()
{
myMap.controls.remove('smallZoomControl');
}