Accesing the map object with two (or more) maps on screen

The leafletData service allows us to access the internals of the leaflet library (map object, markers, layers, etc.). If two or more maps are on screen we need to pass an id to the map, so we can retrieve the leaflet object of the map specified by that id.