diasbling functionality to migrate to new leaflet