Updated maxBounds directive
Extracted the "createLayer" function and its associated functions in a new leafletLayerHelpers