Answer the question
In order to leave comments, you need to log in
Why does the marker change its location to zoom?
I have this marker:
var image = '/img/map-marker.png';
var mainOfficeDot = {lat: 50.443718, lng: 30.652011};
var marker = new google.maps.Marker({
position: mainOfficeDot,
anchor: mainOfficeDot,
map: map,
icon: image
});
//init map
var map = new google.maps.Map(document.getElementById('js-contacts-map'), {
zoom: 13,
scrollwheel: false,
center: mainOfficeDot
});
Answer the question
In order to leave comments, you need to log in
To begin with, remove anchor
, you don't know what you use this property for, passing to it, for some reason, geographic coordinates.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question