::ng-deep .carousel-item {
/* Force to always be block */
display: block !important;
position: absolute;
transform: translateY(0%);
opacity: 0;
transition:all 1s;
}
::ng-deep .carousel-item.active {
position: relative;
transform: translateY(0);
opacity: 1;
top: 0;
}
::ng-deep .carousel-item.active + .carousel-item {
transform: translateY(100%);
opacity: 0;
transition:all 1s;
}
var isSetToCenterMap = new google.maps.LatLng(55.830695, 37.431010);
function geocodeAddress(location, isSetToCenterMap) {
geo.geocode({'address' : location[0]}, function (results,status) {
if(status == google.maps.GeocoderStatus.OK) {
if (isSetToCenterMap){
map.setCenter(results[0].geometry.location);
}
createMarker(results[0].geometry.location,location[0],location[1],location[2]);
}
});
}
var isSetToCenterMap = new google.maps.LatLng(55.830695, 37.431010);
function geocodeAddress(location, isSetToCenterMap) {
geo.geocode({ 'address' : location[0]}, function (results,status) {
if(status == google.maps.GeocoderStatus.OK) {
console.log(isSetToCenterMap);
//map.setCenter(results[0].geometry.location);
map.setCenter(isSetToCenterMap);
createMarker(results[0].geometry.location,location[0],location[1],location[2]);
});
}
А вот пример кода карты
https://codepen.io/Cheizer/pen/EzNvVB