I am currently using the AGM Map feature available on and I need to disable the zooming functionality when scrolling. Despite setting gestureHandling = "'cooperative'", it does not seem to work. Are there any specific factors causing this issue?
.map-container {
margin-top: 56px;
margin-left: 0;
padding: 0;
-ms-overflow-x: hidden;
overflow-x: hidden;
overflow-y: scroll;
position: relative;
overflow: hidden;
}
.main-container {
margin-top: 56px;
margin-left: 235px;
padding: 15px;
-ms-overflow-x: hidden;
overflow-x: hidden;
overflow-y: scroll;
position: relative;
overflow: hidden;
}
agm-map{
height: 100vh;
width: 100vw;
margin-left: 0;
padding: 0;
-ms-overflow-x: hidden;
overflow-x: hidden;
overflow-y: scroll;
position: relative;
overflow: hidden;
}
@media screen and (max-width: 992px) {
.main-container {
margin-left: 0px !important;
}
}
<div [@routerTransition] class="map-container">
<agm-map [latitude]="lat" [longitude]="lng" [zoom]='12' [gestureHandling]="'cooperative'">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map>
</div>