Answer the question
In order to leave comments, you need to log in
Errors with Google Maps on Bitrix?
Hello.
Recently, I ran into a Google map problem, everything worked before, no one climbed there, but Google obviously had an update and as a result the map crashed with this error: jQuery.Deferred exception: moveMap is not defined ReferenceError: moveMap is not
defined script, found the moveMap function, but I can’t fully understand what the problem is, everything looks fine.
Please tell me where to dig?
$('#select__city').change(function(e) {
$('#'+$(this).val()).click();
});
var markerArray = [];
function moveMap(address) {
var geocoder = new google.maps.Geocoder();
geocoder.geocode({ 'address': address }, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var coords = {
lat: results[0].geometry.location.lat(),
lng: results[0].geometry.location.lng()
}
map.setCenter(coords);
map.setZoom(11);
// console.log(coords);
}
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question