changes before using defining a angular.js directive for leaflet.js