Changes to leaflet Settings not working
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 ...