Changes to leaflet Settings not working I am unable to alter a settings of a leaflet map generated by a view using the method described here in a custom module. https://www.drupal.org/node/1883788

Using the code below in my custom module does not work.

  function MYMODULE_leaflet_map_info_alter(&amp;$map_info) {
      $map_info['esri-world-street-map']['settings']['scrollWheelZoom'] = TRUE;
      $map_info['esri-world-topo-map']['settings']['scrollWheelZoom'] = TRUE;
  }


Where MYMODULE is the name of my module.

Someone else had this same issue and we have been talking trying to solve the issue. https://www.drupal.org/node/2831593
The code shown in your question can never work: you need, at least, change the function name from "MYMODULE_leaflet_map_info_alter" to the actual name of your module.

PS: debugging is the art of taking away all possible reasons why something doesn't work as expected. This is for sure 1 of the possible reasons ...