Add YandexMap on the page.
Settings:
- x - longitude
- y - latitude
- height - height of map (Default: 400px)
ymaps.ready(function () { | |
var myMap = new ymaps.Map('map', { | |
center: [55.7404033, 37.5913301], | |
zoom: 15, | |
controls: [] | |
}); | |
myMap.geoObjects | |
.add(new ymaps.Placemark([55.7404033, 37.5913301], { |
function equalColumnHeight(_item){ | |
var minHeight = _item.first().height(); | |
_item.each(function(){ | |
_height = $(this).height(); | |
if(minHeight < _height){ | |
minHeight = $(this).height(); | |
} | |
}); |
function scrollTo(item, offset){ | |
offset = offset ? offset : 0; | |
$('html, body').animate({ | |
scrollTop: $(item).offset().top - 0 | |
}, 1000); | |
} | |
$('.js-nav-link').on('click', function(e){ | |
var elem = $(this).attr('href'); |
<input type="text" placeholder="It's here" /> |
ymaps.ready(function () { | |
var pointA = "Смоленская метро", | |
pointB = "ул. Арбат д.51 , стр.1", | |
/** | |
* Создаем мультимаршрут. | |
* @see https://api.yandex.ru/maps/doc/jsapi/2.1/ref/reference/multiRouter.MultiRoute.xml | |
*/ | |
multiRoute = new ymaps.multiRouter.MultiRoute({ | |
referencePoints: [ | |
pointA, |