added some options handling to Leaflet handler