Definitely need a better way of doing this. Perhaps have a callback on the leaflet object constructor parameters so it could modify them?