Current Path : /var/www/u0635749/data/www/hobbyclick.ru/public/hobbyclick/hobbyclick/include/contacts/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/public/hobbyclick/hobbyclick/include/contacts/map.php |
<div class="map map--contacts" id="map"> <script type="text/javascript"> let iconConfig = { iconLayout: 'default#image', iconImageHref: '<?=SITE_TEMPLATE_PATH?>/assets/img/marker.png', iconImageSize: [32, 32], iconImageOffset: [-16, -32] } function initMap() { let map; map = new ymaps.Map("map", { center: [59.942417, 30.358098], controls: [], zoom: 10 } ); map.controls.add('zoomControl', { float: 'none', size: 'small', position: { left: 15, top: 15 } }); map.behaviors.disable('scrollZoom'); if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { map.behaviors.disable('drag'); } let adr1 = new ymaps.Placemark([59.942417, 30.358098], { }, iconConfig ); map.geoObjects.add(adr1); } </script> <script src="https://api-maps.yandex.ru/2.1/?lang=ru_RU&width=100%&onload=initMap" type="text/javascript" async></script> </div>