adding functionalities for leaflet in nmis.coffee