Added option to get map zoom value and require directives to integrate with Ruby on Rails